Added missing include guards to mutex.h and thread.h
This commit is contained in:
1 parent
4402a70415
commit
7c53d0c516
2 files changed
+10
No files matched your search
@@ -22,6 +22,9 @@
|
||||
* - cmc_mtx_trylock
|
||||
*/
|
||||
|
||||
#ifndef CMC_MUTEX_H
|
||||
#define CMC_MUTEX_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "../cor/flags.h"
|
||||
@@ -210,3 +213,5 @@ static inline bool cmc_mtx_trylock(struct cmc_mutex *mtx)
|
||||
return err == 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* CMC_MUTEX_H */
|
||||
@@ -20,6 +20,9 @@
|
||||
* - cmc_thrd_join
|
||||
*/
|
||||
|
||||
#ifndef CMC_THREAD_H
|
||||
#define CMC_THREAD_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
@@ -171,3 +174,5 @@ static inline bool cmc_thrd_join(struct cmc_thread *thr, int *result)
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* CMC_THREAD_H */
|
||||
Reference in new issue
Block a user