Home
last modified time | relevance | path

Searched refs:lck (Results 1 – 15 of 15) sorted by relevance

/third_party/boost/boost/interprocess/sync/
Dinterprocess_upgradable_mutex.hpp293 scoped_lock_t lck(m_mut); in lock() local
298 this->m_first_gate.wait(lck); in lock()
309 this->m_second_gate.wait(lck); in lock()
316 scoped_lock_t lck(m_mut, try_to_lock); in try_lock() local
320 if(!lck.owns() in try_lock()
334 scoped_lock_t lck(m_mut, abs_time); in timed_lock() local
335 if(!lck.owns()) return false; in timed_lock()
340 if(!this->m_first_gate.timed_wait(lck, abs_time)){ in timed_lock()
356 if(!this->m_second_gate.timed_wait(lck, abs_time)){ in timed_lock()
369 scoped_lock_t lck(m_mut); in unlock() local
[all …]
Dinterprocess_sharable_mutex.hpp181 scoped_lock_t lck(m_mut); in lock() local
186 this->m_first_gate.wait(lck); in lock()
197 this->m_second_gate.wait(lck); in lock()
204 scoped_lock_t lck(m_mut, try_to_lock); in try_lock() local
208 if(!lck.owns() in try_lock()
220 scoped_lock_t lck(m_mut, abs_time); in timed_lock() local
221 if(!lck.owns()) return false; in timed_lock()
228 if(!this->m_first_gate.timed_wait(lck, abs_time)){ in timed_lock()
246 if(!this->m_second_gate.timed_wait(lck, abs_time)){ in timed_lock()
259 scoped_lock_t lck(m_mut); in unlock() local
[all …]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c76 struct flock64 lck = { in fn_ofd_w() local
87 lck.l_type = F_WRLCK; in fn_ofd_w()
88 my_fcntl(fd, F_OFD_SETLKW, &lck); in fn_ofd_w()
93 lck.l_type = F_UNLCK; in fn_ofd_w()
94 my_fcntl(fd, F_OFD_SETLKW, &lck); in fn_ofd_w()
116 struct flock lck = { in fn_posix_w() local
126 lck.l_type = F_WRLCK; in fn_posix_w()
127 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
132 lck.l_type = F_UNLCK; in fn_posix_w()
133 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
[all …]
Dfcntl_common.h21 static int my_fcntl(int fd, int cmd, void *lck) in my_fcntl() argument
23 return SAFE_FCNTL(fd, cmd, lck); in my_fcntl()
26 static int my_fcntl(int fd, int cmd, void *lck) in my_fcntl() argument
28 int ret = tst_syscall(__NR_fcntl64, fd, cmd, lck); in my_fcntl()
Dfcntl34.c58 struct flock64 lck = { in thread_fn_01() local
65 lck.l_type = F_WRLCK; in thread_fn_01()
66 my_fcntl(fd, F_OFD_SETLKW, &lck); in thread_fn_01()
71 lck.l_type = F_UNLCK; in thread_fn_01()
72 my_fcntl(fd, F_OFD_SETLKW, &lck); in thread_fn_01()
/third_party/boost/boost/thread/
Dexternally_locked_stream.hpp122 …m_guard<Stream, RecursiveMutex>& operator<<(const stream_guard<Stream, RecursiveMutex>& lck, T arg) in operator <<() argument
124 lck.get() << arg; in operator <<()
125 return lck; in operator <<()
129 …m, RecursiveMutex>& operator<<(const stream_guard<Stream, RecursiveMutex>& lck, Stream& (*arg)(Str… in operator <<() argument
131 lck.get() << arg; in operator <<()
132 return lck; in operator <<()
136 …_guard<Stream, RecursiveMutex>& operator>>(const stream_guard<Stream, RecursiveMutex>& lck, T& arg) in operator >>() argument
138 lck.get() >> arg; in operator >>()
139 return lck; in operator >>()
Dfuture.hpp1056 virtual void execute(boost::unique_lock<boost::mutex>& lck) { in execute()
1060 relocker relock(lck); in execute()
1063 this->mark_finished_with_result_internal(boost::move(res), lck); in execute()
1067 this->mark_exceptional_finish_internal(current_exception(), lck); in execute()
1082 virtual void execute(boost::unique_lock<boost::mutex>& lck) { in execute()
1085 this->mark_finished_with_result_internal(func_(), lck); in execute()
1089 this->mark_exceptional_finish_internal(current_exception(), lck); in execute()
1105 virtual void execute(boost::unique_lock<boost::mutex>& lck) { in execute()
1109 relocker relock(lck); in execute()
1112 this->mark_finished_with_result_internal(lck); in execute()
[all …]
/third_party/boost/libs/container/src/
Dsynchronized_pool_resource.cpp67 thread_mutex_lock lck(m_mut); (void)lck; in release() local
79 thread_mutex_lock lck(m_mut); (void)lck; in do_allocate() local
85 thread_mutex_lock lck(m_mut); (void)lck; in do_deallocate() local
/third_party/boost/boost/interprocess/detail/
Dwindows_intermodule_singleton.hpp134 scoped_lock<winapi_mutex_wrapper> lck(m_mtx_lock); in windows_semaphore_based_map() local
188 scoped_lock<winapi_mutex_wrapper> lck(m_mtx_lock); in find() local
201 scoped_lock<winapi_mutex_wrapper> lck(m_mtx_lock); in insert() local
209 scoped_lock<winapi_mutex_wrapper> lck(m_mtx_lock); in erase() local
217 scoped_lock<winapi_mutex_wrapper> lck(m_mtx_lock); in atomic_func() local
223 scoped_lock<winapi_mutex_wrapper> lck(m_mtx_lock); in ~windows_semaphore_based_map() local
/third_party/openssl/crypto/asn1/
Dtasn_utl.c61 CRYPTO_REF_COUNT *lck; in asn1_do_lock() local
71 lck = offset2ptr(*pval, aux->ref_offset); in asn1_do_lock()
76 *lck = ret = 1; in asn1_do_lock()
84 if (!CRYPTO_UP_REF(lck, &ret, *lock)) in asn1_do_lock()
88 if (!CRYPTO_DOWN_REF(lck, &ret, *lock)) in asn1_do_lock()
/third_party/boost/libs/exception/test/
Dcopy_exception_test.cpp55 boost::unique_lock<boost::mutex> lck (mux_); in set_exception() local
64 boost::unique_lock<boost::mutex> lck (mux_); in get_exception() local
66 cond_.wait (lck); in get_exception()
/third_party/boost/libs/thread/doc/
Dsync_streams.qbk34 …_guard<Stream, RecursiveMutex>& operator<<(const stream_guard<Stream, RecursiveMutex>& lck, T arg);
37 operator<<(const stream_guard<Stream, RecursiveMutex>& lck, Stream& (*arg)(Stream&));
40 operator>>(const stream_guard<Stream, RecursiveMutex>& lck, T& arg);
/third_party/gstreamer/gstplugins_bad/sys/nvdec/
Dcuviddec.h945 extern CUresult CUDAAPI cuvidCtxLockDestroy(CUvideoctxlock lck);
951 extern CUresult CUDAAPI cuvidCtxLock(CUvideoctxlock lck, unsigned int reserved_flags);
957 extern CUresult CUDAAPI cuvidCtxUnlock(CUvideoctxlock lck, unsigned int reserved_flags);
/third_party/openssl/ssl/
Dssl_sess.c21 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);
719 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock() argument
725 if (lck) in remove_session_lock()
734 if (lck) in remove_session_lock()
/third_party/e2fsprogs/lib/ext2fs/
Dtdb.c501 struct tdb_lock_type *lck = NULL; in tdb_unlock() local
527 lck = &tdb->lockrecs[i]; in tdb_unlock()
532 if ((lck == NULL) || (lck->count == 0)) { in tdb_unlock()
537 if (lck->count > 1) { in tdb_unlock()
538 lck->count--; in tdb_unlock()
563 *lck = tdb->lockrecs[tdb->num_lockrecs-1]; in tdb_unlock()