diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-01-02 20:29:55 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-01-02 20:29:55 -0500 |
| commit | b025cf269d2e07e179be4a0e34d936862dc640c2 (patch) | |
| tree | 6bcce81829436a08dbe4f0101044c0cd07811525 /stdlib/datatypes.h | |
| parent | 500e4e1bd74b45476c4df0f4f9da72fbada9bb18 (diff) | |
Use `holding` blocks for mutexed data instead of lambdas
Diffstat (limited to 'stdlib/datatypes.h')
| -rw-r--r-- | stdlib/datatypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/datatypes.h b/stdlib/datatypes.h index 9c3cabc2..11ae130e 100644 --- a/stdlib/datatypes.h +++ b/stdlib/datatypes.h @@ -89,4 +89,9 @@ typedef struct timeval Moment_t; typedef struct RNGState_t* RNG_t; +typedef struct MutexedData_s { + pthread_mutex_t mutex; + void *data; +} *MutexedData_t; + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
