diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-07-20 14:01:01 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-07-20 14:01:01 +0200 |
commit | 8e6850107adb5ca37ed0e9a4500282b2e8743294 (patch) | |
tree | ccd4ef7d03e79a5c9f32359f643275cdd27eb67c /mutex_helpers.h | |
parent | 2992a3f013aaa833f2c72ef1e368a9752b2bb889 (diff) | |
download | nebula2-8e6850107adb5ca37ed0e9a4500282b2e8743294.tar.gz nebula2-8e6850107adb5ca37ed0e9a4500282b2e8743294.tar.bz2 nebula2-8e6850107adb5ca37ed0e9a4500282b2e8743294.zip |
Rough structure done. Parallel working should work.
Diffstat (limited to 'mutex_helpers.h')
-rw-r--r-- | mutex_helpers.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mutex_helpers.h b/mutex_helpers.h new file mode 100644 index 0000000..0cdc7b6 --- /dev/null +++ b/mutex_helpers.h @@ -0,0 +1,12 @@ +#ifndef _nebula2_mutex_helpers_h_ +#define _nebula2_mutex_helpers_h_ + +#include <pthread.h> + +/* Creating a locked mutex */ +extern pthread_mutex_t* mutex_create(); + +/* Destroy a mutex created by mutex_create */ +extern void mutex_destroy(pthread_mutex_t* mu); + +#endif |