#include <gnuradio/custom_lock.h>
Public Member Functions | |
custom_lock (gr::thread::mutex &mutex, std::shared_ptr< custom_lock_if > locker) | |
~custom_lock () | |
custom_lock (custom_lock const &)=delete | |
custom_lock & | operator= (custom_lock const &)=delete |
Class that defines a lock using a mutex and a "locker" that implements the custom_lock_if interface. The interface defines an on_lock() function that is executed when the lock is locked and an on_unlock() function that the is called when the lock is unlocked. Calls to these two functions are delegated to the locker object.
|
inlineexplicit |
|
inline |
|
delete |
|
delete |