diff options
author | chai <chaifix@163.com> | 2018-08-06 21:50:55 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-06 21:50:55 +0800 |
commit | f5e72dd12fc47f082a4f6d14090391410aa8a9f1 (patch) | |
tree | d333605b5bfb651c336dcb60f27d99048cd8ff89 /src/libjin/thread/thread.cpp | |
parent | 5bcb37a04383f6827aaea3aaf67ffc5e32e5f990 (diff) |
*update
Diffstat (limited to 'src/libjin/thread/thread.cpp')
-rw-r--r-- | src/libjin/thread/thread.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libjin/thread/thread.cpp b/src/libjin/thread/thread.cpp index ae6498d..06975f7 100644 --- a/src/libjin/thread/thread.cpp +++ b/src/libjin/thread/thread.cpp @@ -23,7 +23,6 @@ namespace thread friend class Conditional; }; - // ̼߳signal wait class Conditional { public: @@ -44,19 +43,15 @@ namespace thread Lock(Mutex* m) : mutex(m) { mutex->lock(); } - Lock(Mutex& m) : mutex(&m) { mutex->lock(); } - ~Lock() { mutex->unlock(); } private: Mutex* mutex; - Lock(Lock&) {} - }; ////////////////////////////////////////////////////////////////////// |