Renamed sem to semaphore.

This commit is contained in:
Branimir Karadžić
2017-02-15 22:38:17 -08:00
parent 8f9ca7ce39
commit 4e2f6ff8d3
5 changed files with 28 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
#include "bx.h"
#include "cpu.h"
#include "mutex.h"
#include "sem.h"
#include "semaphore.h"
#include "uint32_t.h"
#include <list>

View File

@@ -7,7 +7,7 @@
#define BX_THREAD_H_HEADER_GUARD
#include "bx.h"
#include "sem.h"
#include "semaphore.h"
#if BX_CONFIG_SUPPORTS_THREADING

View File

@@ -730,6 +730,31 @@ function toolchain(_buildDir, _libDir)
buildoptions {
"-mfpmath=sse",
}
--[[
defines { "BX_CRT_NONE" }
buildoptions {
"-nostdlib",
"-nodefaultlibs",
"-nostartfiles",
"-Wa,--noexecstack",
"-ffreestanding",
"-mpreferred-stack-boundary=4",
"-mstackrealign",
}
linkoptions {
"-nostdlib",
"-nodefaultlibs",
"-nostartfiles",
"-Wa,--noexecstack",
"-ffreestanding",
"-mpreferred-stack-boundary=4",
"-mstackrealign",
}
--]]
configuration { "linux-gcc* or linux-clang*" }
buildoptions {

View File

@@ -3,7 +3,7 @@
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
#include <bx/sem.h>
#include <bx/semaphore.h>
#if BX_CONFIG_SUPPORTS_THREADING