Friendly LWM2M client
WppGuard.h
Go to the documentation of this file.
1 #ifndef WPP_GUARD_H
2 #define WPP_GUARD_H
3 
4 namespace wpp {
5 
14 class WppGuard {
15 public:
20 
25 
32  void lock();
33 
40  void unlock();
41 
51  bool try_lock();
52 
53 private:
54  void *_guard;
55 };
56 
57 } // namespace wpp
58 
59 #endif // WPP_GUARD_H
The WppGuard class provides a linker callback class that must be implemented by the user.
Definition: WppGuard.h:14
WppGuard()
Constructs a WppGuard object.
bool try_lock()
Tries to lock the guard object.
void unlock()
Unlocks the guard object.
~WppGuard()
Destructs the WppGuard object.
void lock()
Locks the guard object.
The WppConnection class represents a connection interface for the Wpp library.
Definition: WppClient.cpp:14