8 | --------------------------------------------------------------------------------
9 | -- PthreadT
10 | --------------------------------------------------------------------------------
15 | ||| Wrapper around an identifier for a POSIX thread.
25 | ||| Warning: This `Show` implementation for thread IDs is for debugging only!
26 | ||| According to SUSv3, a thread ID need not be a scalar, so it should be
27 | ||| treated as an opaque type.
28 | |||
29 | ||| On many implementations (including on Linux), they are just integers, so
30 | ||| this can be useful for debugging.
35 | ||| Wrapper around a `pthread_mutex_t` pointer.
36 | |||
37 | ||| Noted: While this provides additional flexibility over the type of mutex
38 | ||| we use (see `mkmutex`) and how we acquire a lock on a mutex, it is less
39 | ||| convenient to use than the garbage-collected version from
40 | ||| `System.Concurrency`.
50 | ||| Wrapper around a `pthread_cond_t` pointer.
51 | |||
52 | ||| Noted: While this provides additional flexibility over the type of condition
53 | ||| we use (see `mkcond`) convenient to use than the garbage-collected version from
54 | ||| `System.Concurrency`.