libcopp  2.2.0
Data Structures | Namespaces
lock_holder.h File Reference

锁管理器 Licensed under the MIT licenses. More...

#include <libcopp/utils/config/stl_include_prefix.h>
#include <cstring>
#include <libcopp/utils/config/stl_include_suffix.h>
#include <libcopp/utils/config/libcopp_build_features.h>
Include dependency graph for lock_holder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  util::lock::detail::default_lock_action< TLock >
 
struct  util::lock::detail::default_try_lock_action< TLock >
 
struct  util::lock::detail::default_unlock_action< TLock >
 
struct  util::lock::detail::default_try_unlock_action< TLock >
 
struct  util::lock::detail::default_read_lock_action< TLock >
 
struct  util::lock::detail::default_read_unlock_action< TLock >
 
struct  util::lock::detail::default_write_lock_action< TLock >
 
struct  util::lock::detail::default_write_unlock_action< TLock >
 
class  util::lock::lock_holder< TLock, TLockAct, TUnlockAct >
 
class  util::lock::read_lock_holder< TLock >
 
class  util::lock::write_lock_holder< TLock >
 

Namespaces

 util
 
 util::lock
 
 util::lock::detail
 

Detailed Description

锁管理器 Licensed under the MIT licenses.

Version
1.0
Author
owent
Date
2015-06-29
Note
实现锁的自管理操作,类似std::lock_guard,增加了针对特定场合使用的try_unlock函数

@history

Definition in file lock_holder.h.