Mara Bos
|
6a417d4828
|
Lazily allocate+initialize locks.
|
2022-06-03 17:04:14 +02:00 |
|
Mara Bos
|
ac5aa1ded5
|
Use Drop instead of destroy() for locks.
|
2022-06-03 16:45:47 +02:00 |
|
Mara Bos
|
4212de63ab
|
Use a single ReentrantMutex implementation on all platforms.
|
2022-04-16 11:30:22 +02:00 |
|
Mara Bos
|
7a35c0f52d
|
Use u32 instead of i32 for futexes.
|
2022-04-14 11:44:12 +02:00 |
|
Mara Bos
|
83e8b9e4dd
|
Add debug asserts to futex ReentrantMutex impl.
|
2022-04-12 08:44:39 +02:00 |
|
Mara Bos
|
43651aa34f
|
Initialize thread local with const{}.
|
2022-04-12 08:44:39 +02:00 |
|
Mara Bos
|
319a9b0f71
|
Move current_thread_unique_ptr to the only module that uses it.
|
2022-04-12 08:44:39 +02:00 |
|
Mara Bos
|
bd61bec67d
|
Add futex-based ReentrantMutex on Linux.
|
2022-04-12 08:44:38 +02:00 |
|
Mara Bos
|
650315ee88
|
Reword comment in futex condvar implementation.
|
2022-04-05 17:08:12 +02:00 |
|
Mara Bos
|
104e95f848
|
Mark unix::locks::futex::Mutex::new as #[inline].
|
2022-04-05 13:58:10 +02:00 |
|
Mara Bos
|
321690c827
|
Don't spin on contended mutexes.
|
2022-04-01 11:11:46 +02:00 |
|
Mara Bos
|
6392f1555e
|
Shuffle around #[inline] and #[cold] in mutex impl.
|
2022-04-01 11:11:28 +02:00 |
|
Mara Bos
|
da4ef044c1
|
Spin before blocking in Mutex::lock.
|
2022-03-23 14:58:44 +01:00 |
|
Mara Bos
|
7f26adeac1
|
Replace Linux Mutex and Condvar with futex based ones.
|
2022-03-23 14:58:44 +01:00 |
|