File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,10 @@ typedef enum LogLevel {
201201 * A real-time clock which uses system time.
202202 *
203203 * Timestamps are guaranteed to be unique and monotonically increasing.
204+ *
205+ * # Threading
206+ *
207+ * The clock holds thread-local runtime state and must remain on its originating thread.
204208 */
205209typedef struct LiveClock LiveClock ;
206210
@@ -230,6 +234,10 @@ typedef struct LogGuard LogGuard;
230234 * A static test clock.
231235 *
232236 * Stores the current timestamp internally which can be advanced.
237+ *
238+ * # Threading
239+ *
240+ * This clock is thread-affine; use it only from the thread that created it.
233241 */
234242typedef struct TestClock TestClock ;
235243
Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ cdef extern from "../includes/common.h":
106106 # A real-time clock which uses system time.
107107 #
108108 # Timestamps are guaranteed to be unique and monotonically increasing.
109+ #
110+ # # Threading
111+ #
112+ # The clock holds thread-local runtime state and must remain on its originating thread.
109113 cdef struct LiveClock:
110114 pass
111115
@@ -133,6 +137,10 @@ cdef extern from "../includes/common.h":
133137 # A static test clock.
134138 #
135139 # Stores the current timestamp internally which can be advanced.
140+ #
141+ # # Threading
142+ #
143+ # This clock is thread-affine; use it only from the thread that created it.
136144 cdef struct TestClock:
137145 pass
138146
You can’t perform that action at this time.
0 commit comments