c++ - Observe changes in QSharedMemory -


i have qsharedmemory prevent 2 processes of application running @ same time. process sets qsharedmemory "locked" when started. process b sets value "please come foreground".

is there easy way process observe changes in qsharedmemory, i.e. avoids implementing stupid pulling timer?

here are: qsystemsemaphore

like lighter counterpart qsemaphore, qsystemsemaphore can accessed multiple threads. unlike qsemaphore, qsystemsemaphore can accessed multiple processes.

like qsharedmemory, qsystemsemaphore uses key-based access method.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -