Go to the documentation of this file.
33 #include <sys/types.h>
87 ~Lock() {
if (_locked) _s.unlock(); }
138 return (mem.
begin());
iterator begin() const
The beginning of the SharedMem section.
Definition: SharedMem.h:55
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ i
Definition: GnashKey.h:155
std::uint8_t * iterator
Definition: SharedMem.h:49
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
bool attached(const SharedMem &mem)
Check if the SharedMem has been attached.
Definition: SharedMem.h:137
@ s
Definition: GnashKey.h:165
Definition: SharedMem.h:46
void log_error(StringType msg, Args... args)
Definition: log.h:283
Use to get a scoped semaphore lock on the shared memory.
Definition: SharedMem.h:84
DSOEXPORT bool attach()
Initialize the shared memory segment.
Definition: SharedMem.cpp:179
DSOEXPORT ~SharedMem()
Destructor.
Definition: SharedMem.cpp:62
bool locked() const
Definition: SharedMem.h:88
Lock(const SharedMem &s)
Definition: SharedMem.h:86
iterator end() const
The end of the SharedMem section.
Definition: SharedMem.h:62
DSOEXPORT SharedMem(size_t size)
Construct a SharedMem with the requested size.
Definition: SharedMem.cpp:52
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35
~Lock()
Definition: SharedMem.h:87
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
#define DSOEXPORT
Definition: dsodefs.h:55