Bug 548967 - 1 bit mutex lock

Add support for a mutex lock that consumes only one bit of storage
inside of an integer on systems that support futexes.  Futex is emulated
(at a higher cost) on systems that don't have it -- but only in the
contended case.
This commit is contained in:
Ryan Lortie
2010-01-28 11:32:07 -05:00
parent 595cad2531
commit 669b0f2d6b
9 changed files with 379 additions and 0 deletions

View File

@@ -660,6 +660,11 @@ g_once
g_once_init_enter
g_once_init_leave
<SUBSECTION>
g_bit_lock
g_bit_trylock
g_bit_unlock
<SUBSECTION Private>
G_THREAD_ECF
G_THREAD_CF