@@ -4,8 +4,9 @@
*/
#include "core/filesystem/path.h"
+#include "core/platform.h"
#include "core/strings/dynamic_string.h"
-#include <ctype.h> // isalpha
+#include <ctype.h> // isalpha
#include <string.h> // strrchr
namespace crown
@@ -5,7 +5,6 @@
#pragma once
-#include "core/platform.h"
#include "core/strings/types.h"
@@ -13,8 +13,8 @@
{
AtomicInt::AtomicInt(s32 val)
+ : _val(val)
- store(val);
}
s32 AtomicInt::load()
@@ -16,7 +16,7 @@ struct AtomicInt
s32 _val;
- ///
+ /// Initialization is not atomic.
AtomicInt(s32 val);
///
@@ -3,6 +3,8 @@
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
+#include "core/error/error.h"
#include "core/thread/condition_variable.h"
#if CROWN_PLATFORM_POSIX
#include "core/thread/mutex.h"
@@ -5,8 +5,6 @@
-#include "core/error/error.h"
#include "core/types.h"
@@ -4,6 +4,7 @@
#include "core/error/error.h"
#include "core/thread/semaphore.h"
#include "core/thread/thread.h"