mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 23:23:04 +01:00
Dmitry Yemanov:
Right now locks.h is used by the memory manager only. In its internals you can find that SS uses Spinlock class whilst CS uses SharedSpinlock (which is just a dummy now). So I think everything except SharedSpinlock should be #ifdef'ed with SUPERSERVER in locks.h. The only doubt I have is a SOLARIS check there (is it related to SS or CS?).
This commit is contained in:
parent
8b82da609f
commit
9de51efd26
@ -3,6 +3,7 @@
|
||||
|
||||
#include "firebird.h"
|
||||
|
||||
#ifdef SUPERSERVER
|
||||
#ifdef WIN_NT
|
||||
// It is relatively easy to avoid using this header. Maybe do the same stuff like
|
||||
// in thd.h ? This is Windows platform maintainers choice
|
||||
@ -15,9 +16,11 @@
|
||||
#include <thread.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif /* SUPERSERVER */
|
||||
|
||||
namespace Firebird {
|
||||
|
||||
#ifdef SUPERSERVER
|
||||
#ifdef WIN_NT
|
||||
|
||||
/* Process-local spinlock. Used to manage memory heaps in threaded environment. */
|
||||
@ -98,6 +101,7 @@ public:
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif /* SUPERSERVER */
|
||||
|
||||
// Spinlock in shared memory. Not implemented yet !
|
||||
class SharedSpinlock {
|
||||
|
Loading…
Reference in New Issue
Block a user