diff options
-rw-r--r-- | src/thread_x86.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread_x86.cc b/src/thread_x86.cc index 4f61e66..85da1f3 100644 --- a/src/thread_x86.cc +++ b/src/thread_x86.cc @@ -36,8 +36,8 @@ void Thread::InitCpu() { #if defined(__APPLE__) UNIMPLEMENTED(WARNING); #else - // TODO: create specific lock for LDT modification - ScopedThreadListLock mutex; // Avoid concurrent modification of the LDT + static Mutex modify_ldt_lock("modify_ldt lock"); + MutexLock mu(modify_ldt_lock); // Read LDT CHECK_EQ((size_t)LDT_ENTRY_SIZE, sizeof(uint64_t)); |