-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Description
Description
I am currently trying to interface with a C library (SDL) which runs on its own thread and need a callback.
First I wanted to use an Arc<RWLock<DList<T>>> for this purpose. When confronted with runtime failures, someone on the IRC pointed out to me that an RWLock can only be used from within a Rust thread.
This makes a lot of sense, but was not clear at all from the docs. Maybe it could be pointed out what functions / structures can not be used from a bare pthread?
(Also, is there a Lock which can be used both from a phtread and from a rust thread?)
Metadata
Metadata
Assignees
Labels
No labels