Home
last modified time | relevance | path

Searched refs:mutex_ (Results 1 – 14 of 14) sorted by relevance

/thrift-3.4.0/lib/cpp/src/thrift/concurrency/
DMutex.h60 Guard(const Mutex& value, int64_t timeout = 0) : mutex_(&value) {
65 mutex_ = nullptr;
69 mutex_ = nullptr;
74 if (mutex_) { in ~Guard()
75 mutex_->unlock(); in ~Guard()
79 operator bool() const { return (mutex_ != nullptr); }
82 const Mutex* mutex_;
DMonitor.cpp44 …Impl() : ownedMutex_(new Mutex()), conditionVariable_(), mutex_(nullptr) { init(ownedMutex_.get())… in Impl()
46 Impl(Mutex* mutex) : ownedMutex_(), conditionVariable_(), mutex_(nullptr) { init(mutex); } in Impl()
48 Impl(Monitor* monitor) : ownedMutex_(), conditionVariable_(), mutex_(nullptr) { in Impl()
52 Mutex& mutex() { return *mutex_; } in mutex()
53 void lock() { mutex_->lock(); } in lock()
54 void unlock() { mutex_->unlock(); } in unlock()
83 assert(mutex_); in waitForTimeRelative()
84 auto* mutexImpl = static_cast<std::timed_mutex*>(mutex_->getUnderlyingImpl()); in waitForTimeRelative()
99 assert(mutex_); in waitForTime()
100 auto* mutexImpl = static_cast<std::timed_mutex*>(mutex_->getUnderlyingImpl()); in waitForTime()
[all …]
DThreadManager.cpp63 monitor_(&mutex_), in Impl()
64 maxMonitor_(&mutex_), in Impl()
65 workerMonitor_(&mutex_) {} in Impl()
75 Guard g(mutex_); in threadFactory()
80 Guard g(mutex_); in threadFactory()
94 Guard g(mutex_); in workerCount()
99 Guard g(mutex_); in pendingTaskCount()
104 Guard g(mutex_); in totalTaskCount()
109 Guard g(mutex_); in pendingTaskCountMax()
114 Guard g(mutex_); in expiredTaskCount()
[all …]
/thrift-3.4.0/lib/d/src/thrift/util/
Dawaitable.d84 mutex_ = new Mutex; in this()
85 condition_ = new Condition(mutex_); in this()
89 synchronized (mutex_) { in wait()
95 synchronized (mutex_) { in wait()
103 mutex_.lock(); in addCallback()
104 scope (failure) mutex_.unlock(); in addCallback()
109 mutex_.unlock(); in addCallback()
114 mutex_.unlock(); in addCallback()
118 synchronized (mutex_) { in removeCallback()
132 synchronized (mutex_) { in trigger()
[all …]
/thrift-3.4.0/lib/cpp/test/processor/
DHandlers.h33 : triggerMonitor(&mutex_), generation_(0), wait_(false), log_(log) {} in ParentHandler()
36 concurrency::Guard g(mutex_); in incrementGeneration()
42 concurrency::Guard g(mutex_); in getGeneration()
48 concurrency::Guard g(mutex_); in addString()
54 concurrency::Guard g(mutex_); in getStrings()
60 concurrency::Guard g(mutex_); in getDataWait()
69 concurrency::Guard g(mutex_); in onewayWait()
76 concurrency::Guard g(mutex_); in exceptionWait()
87 concurrency::Guard g(mutex_); in unexpectedExceptionWait()
105 concurrency::Guard g(mutex_); in prepareTriggeredCall()
[all …]
/thrift-3.4.0/lib/cpp/test/
DTNonblockingServerTest.cpp83 Mutex mutex_; member
87 listenHandler.reset(new ListenEventHandler(&mutex_)); in Runner()
98 Guard g(mutex_); in readyBarrier()
DTServerIntegrationTest.cpp109 Guard g(mutex_); in incrementGeneration()
114 Guard g(mutex_); in getGeneration()
119 Guard g(mutex_); in addString()
124 Guard g(mutex_); in getStrings()
140 Mutex mutex_; member in ParentHandler
DTNonblockingSSLServerTest.cpp155 Mutex mutex_; member
158 listenHandler.reset(new ListenEventHandler(&mutex_)); in Runner()
170 Guard g(mutex_); in readyBarrier()
/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTFileTransport.cpp82 notFull_(&mutex_), in TFileTransport()
83 notEmpty_(&mutex_), in TFileTransport()
85 flushed_(&mutex_), in TFileTransport()
232 Guard g(mutex_); in enqueueEvent()
268 Guard g(mutex_); in swapEventBuffers()
468 Guard g(mutex_); in writerThread()
510 Guard g(mutex_); in writerThread()
527 Guard g(mutex_); in flush()
DTSSLSocket.h328 static concurrency::Mutex mutex_; variable
DTSSLSocket.cpp874 Mutex TSSLSocketFactory::mutex_; member in apache::thrift::transport::TSSLSocketFactory
878 Guard guard(mutex_); in TSSLSocketFactory()
890 Guard guard(mutex_); in ~TSSLSocketFactory()
DTFileTransport.h356 Mutex mutex_; variable
/thrift-3.4.0/contrib/fb303/
DTClientInfo.h62 Mutex mutex_; variable
87 Guard g(mutex_); in expand()
/thrift-3.4.0/lib/d/test/
Dtransport_test.d713 mutex_ = new Mutex; in this()
714 cancelCondition_ = new Condition(mutex_); in this()
720 synchronized (mutex_) { in ~this()
730 synchronized (mutex_) { in add()
754 synchronized (mutex_) { in timerThread()
800 Mutex mutex_; member