Brian Gianforcaro
bb1fa019de
Kernel: Allow MutexLocker to be conditionally initialized
...
There are cases where we want to conditionally take a lock, but still
would like to use an RAII type to make sure we don't leak the lock.
This was previously impossible to do with `MutexLocker` due to it's
design. This commit tweaks the design to allow the object to be
initialized to an "empty" state without a lock associated, so it does
nothing, and then later a lock can be "attached" to the locker.
I realized that the get_lock() API's where also unused, and would no
longer make sense for empty locks, so they were removed.
2021-07-20 03:21:14 +02:00
..
2021-07-18 22:09:05 +02:00
2021-07-20 03:21:14 +02:00
2021-07-20 03:21:14 +02:00
2021-07-18 01:53:04 +02:00
2021-07-17 21:10:32 +02:00
2021-07-19 18:20:34 +02:00
2021-07-18 19:58:17 +04:30
2021-07-16 20:51:13 +02:00
2021-07-11 21:37:38 +02:00
2021-07-19 02:16:24 +02:00
2021-07-20 01:50:55 +02:00
2021-07-18 01:53:04 +02:00
2021-07-20 03:21:14 +02:00
2021-07-18 22:08:26 +02:00
2021-07-18 01:53:04 +02:00
2021-07-14 12:33:07 +02:00
2021-07-20 03:21:14 +02:00
2021-07-18 17:31:13 +02:00
2021-07-18 01:53:04 +02:00
2021-07-17 21:10:32 +02:00
2021-07-15 11:04:30 +02:00
2021-07-18 00:55:16 +02:00
2021-07-18 22:08:26 +02:00
2021-07-18 22:08:03 +02:00
2021-07-14 13:12:25 +02:00
2021-07-18 17:31:13 +02:00
2021-07-19 11:29:09 +02:00
2021-07-19 11:29:09 +02:00
2021-07-12 11:27:18 +02:00
2021-07-18 17:31:13 +02:00
2021-07-18 17:31:13 +02:00
2021-07-17 21:10:32 +02:00
2021-07-20 03:21:14 +02:00
2021-07-19 08:46:55 +02:00
2021-07-19 08:46:55 +02:00
2021-07-19 08:46:55 +02:00
2021-07-18 19:01:57 +02:00
2021-07-20 03:21:14 +02:00
2021-07-18 01:53:04 +02:00
2021-07-18 00:55:16 +02:00
2021-07-11 21:37:38 +02:00
2021-07-17 21:10:32 +02:00
2021-07-18 01:53:04 +02:00
2021-07-18 01:53:04 +02:00
2021-07-17 21:10:32 +02:00
2021-07-19 08:46:55 +02:00
2021-07-18 22:08:26 +02:00
2021-07-18 17:31:13 +02:00
2021-07-18 17:31:13 +02:00
2021-07-20 03:21:14 +02:00
2021-07-19 08:46:55 +02:00
2021-07-19 08:46:55 +02:00
2021-07-16 15:18:47 +02:00
2021-07-11 21:37:38 +02:00
2021-07-12 11:27:18 +02:00
2021-07-12 11:27:18 +02:00
2021-07-17 22:07:49 +02:00
2021-07-17 22:07:49 +02:00
2021-07-18 17:31:13 +02:00