File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,8 @@ and invokes callbacks from there.
309
309
In these cases access to Rust data structures inside the callbacks is
310
310
especially unsafe and proper synchronization mechanisms must be used.
311
311
Besides classical synchronization mechanisms like mutexes, one possibility in
312
- Rust is to use channels (in `std::comm `) to forward data from the C thread
313
- that invoked the callback into a Rust thread.
312
+ Rust is to use channels (in `std::sync::mpsc `) to forward data from the C
313
+ thread that invoked the callback into a Rust thread.
314
314
315
315
If an asynchronous callback targets a special object in the Rust address space
316
316
it is also absolutely necessary that no more callbacks are performed by the
You can’t perform that action at this time.
0 commit comments