/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/Thread.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-09-21 12:11:50 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150921121150-whoku9vfshtwz4ed
* Made the SMutex code compile.
* Added check to CMakeLists.txt to determin if we have thread support on different pratforms.
* Added HAVE_MTHREAD to config.h.in
* Added HAVE_PTHREAD to config.h.in
* Simplefied src/external/threads.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
BEGIN_DECLS
10
10
 
 
11
#include "config.h"
 
12
 
11
13
#if  !__STDC_NO_ATOMICS__
12
14
#pragma message ("We have _Atomic")
13
15
#include <stdatomic.h>
77
79
 * @param key The key used to unlock the mutex.
78
80
 */
79
81
void
80
 
s_mutex_unlock (SMutex * self, suint key);
 
82
s_mutex_unlock (SMutex * self);
81
83
 
82
84
/**
83
85
 * Check if a mutex is locked.