diff options
Diffstat (limited to 'FoundationEx/Text.h')
-rw-r--r-- | FoundationEx/Text.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/FoundationEx/Text.h b/FoundationEx/Text.h index df5edae..0ade946 100644 --- a/FoundationEx/Text.h +++ b/FoundationEx/Text.h @@ -14,11 +14,11 @@ #ifndef Text_h #define Text_h +#include <atomic> #include <ostream> #include <string.h> #include <windows.h> -#include "ThreadSync.h" // +-------------------------------------------------------------------+ @@ -42,12 +42,11 @@ private: void dohash(); char* data; - long ref; + std::atomic<long> ref; int length; unsigned hash; bool sensitive; - static ThreadSync sync; static TextRep nullrep; }; |