11 #ifndef INCLUDED_GR_CUSTOM_LOCK_H
12 #define INCLUDED_GR_CUSTOM_LOCK_H
53 : d_lock(
mutex), d_locker(locker)
55 d_locker->on_lock(d_lock);
66 std::shared_ptr<custom_lock_if> d_locker;
Definition: custom_lock.h:27
virtual void on_unlock()=0
virtual ~custom_lock_if()
Definition: custom_lock.h:29
virtual void on_lock(gr::thread::scoped_lock &lock)=0
Definition: custom_lock.h:50
custom_lock(custom_lock const &)=delete
custom_lock(gr::thread::mutex &mutex, std::shared_ptr< custom_lock_if > locker)
Definition: custom_lock.h:52
~custom_lock()
Definition: custom_lock.h:58
custom_lock & operator=(custom_lock const &)=delete
boost::mutex mutex
Definition: thread.h:37
boost::unique_lock< boost::mutex > scoped_lock
Definition: thread.h:38
GNU Radio logging wrapper.
Definition: basic_block.h:29