mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Mutex noop when threading is not supported.
This commit is contained in:
@@ -158,4 +158,26 @@ namespace bx
|
||||
|
||||
} // namespace bx
|
||||
|
||||
#endif // BX_MUTEX_H_HEADER_GUARD
|
||||
#else
|
||||
|
||||
namespace bx
|
||||
{
|
||||
Mutex::Mutex()
|
||||
{
|
||||
}
|
||||
|
||||
Mutex::~Mutex()
|
||||
{
|
||||
}
|
||||
|
||||
void Mutex::lock()
|
||||
{
|
||||
}
|
||||
|
||||
void Mutex::unlock()
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace bx
|
||||
|
||||
#endif // BX_CONFIG_SUPPORTS_THREADING
|
||||
|
||||
Reference in New Issue
Block a user