Skip to content

Commit 68e8e1a

Browse files
committed
Fix C header generation
1 parent f906045 commit 68e8e1a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

nautilus_trader/core/includes/common.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/
205209
typedef 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
*/
234242
typedef struct TestClock TestClock;
235243

nautilus_trader/core/rust/common.pxd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)