diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-20 12:54:51 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-20 12:54:51 -0400 |
commit | c9436d428586d501de341838b591bd59d29aa0d7 (patch) | |
tree | 816287ac4b8eeec93e463b0238e9fad934cedb57 /src/threads/mtx_timedlock.c | |
parent | 17c366e61acef079dd636a7280f46bab88d50a6f (diff) |
initial version
Diffstat (limited to 'src/threads/mtx_timedlock.c')
-rw-r--r-- | src/threads/mtx_timedlock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/threads/mtx_timedlock.c b/src/threads/mtx_timedlock.c new file mode 100644 index 00000000..a24c213d --- /dev/null +++ b/src/threads/mtx_timedlock.c @@ -0,0 +1,7 @@ +#include <threads.h> +#include <pthread.h> + +int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts) +{ + return pthread_mutex_timedlock(mtx, ts); +} |