* Can not use a normal mutex because we don't want to tie the resources to a specific thread (and instead e.g. to a build action which might not be executed by a single thread) * A semaphore would do that but libstdc++ only supports it as of GCC 11 and besides it wouldn't distinguish between shared and exclusive locking
10 lines
233 B
C++
10 lines
233 B
C++
#include "./globallock.h"
|
|
#include "./logging.h"
|
|
|
|
namespace LibRepoMgr {
|
|
|
|
template struct LoggingLock<std::shared_lock<GlobalSharedMutex>>;
|
|
template struct LoggingLock<std::unique_lock<GlobalSharedMutex>>;
|
|
|
|
} // namespace LibRepoMgr
|