ess_lock - RoseLeBlood/openess GitHub Wiki

OpenESS Lock interface

Header file: ess_lock.h

class ess_lock : public ess_object

Basic lock interface for ess_mutex and ess_spinlock

public constructor

no parameter constructor 

set object name to "ess_lock"
  • ess_lock()

set object name to name
  • ess_lock(const std::string name);

public interface functions

interface to create 

return ESS_OK on no error
  • virtual ess_error_t create() = 0;

interface to destroy 

return ESS_OK on no error
  • virtual ess_error_t destroy() = 0;

interface to lock 

return ESS_OK on no error
  • virtual ess_error_t lock() = 0;

interface to unlock 

return ESS_OK on no error
  • virtual ess_error_t unlock() = 0;

interface to try_lock 

return ESS_OK on no error
  • virtual ess_error_t try_lock() = 0;

protected member

for system handler
  • void* m_pHandle;