You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should clearly document, which parts of the C node API are thread-safe and which not. Also, we should try to make more functions thread-safe, if possible.
Example: The dora_next_event function casts the given context pointer to a &mut DoraContext in Rust, which must be an exclusive reference. So calling the function concurrently with the same context pointer violates this requirement and leads to undefined behavior. However, the underlying flume channel supports receiving elements through shared references, so we might be able to make dora_next_event thread-safe.
The text was updated successfully, but these errors were encountered:
We should clearly document, which parts of the C node API are thread-safe and which not. Also, we should try to make more functions thread-safe, if possible.
Example: The
dora_next_event
function casts the given context pointer to a&mut DoraContext
in Rust, which must be an exclusive reference. So calling the function concurrently with the same context pointer violates this requirement and leads to undefined behavior. However, the underlyingflume
channel supports receiving elements through shared references, so we might be able to makedora_next_event
thread-safe.The text was updated successfully, but these errors were encountered: