Skip to content

Commit 3fb235d

Browse files
committed
Replace boost::interprocess::interprocess_mutex by Spinlock.
1 parent b14e189 commit 3fb235d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jrd/ProfilerManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
#include "../jrd/met_proto.h"
3434
#include "../jrd/pag_proto.h"
3535
#include "../jrd/tra_proto.h"
36+
#include "../common/classes/Spinlock.h"
3637

3738
#include <atomic>
3839
#include <mutex>
3940
#include <vector>
40-
#include "boost/interprocess/sync/interprocess_mutex.hpp"
4141

4242
#ifdef WIN_NT
4343
#include <process.h>
@@ -103,8 +103,8 @@ namespace
103103
event_t clientEvent;
104104
USHORT bufferSize;
105105
std::atomic<Tag> tag;
106-
unsigned seq;
107-
boost::interprocess::interprocess_mutex bufferMutex;
106+
std::atomic_uint seq;
107+
SpinLock bufferMutex;
108108
char userName[USERNAME_LENGTH + 1]; // \0 if has PROFILE_ANY_ATTACHMENT
109109
alignas(FB_ALIGNMENT) UCHAR buffer[4096];
110110
};

0 commit comments

Comments
 (0)