Open Lighting Architecture
0.9.1
|
The thread that saves preferences
Public Types | |
typedef std::multimap < std::string, std::string > | PreferencesMap |
Public Member Functions | |
void | SavePreferences (const std::string &filename, const PreferencesMap &preferences) |
void * | Run () |
bool | Join (void *ptr=NULL) |
void | Syncronize () |
Public Member Functions inherited from ola::thread::Thread | |
virtual bool | Start () |
virtual bool | FastStart () |
bool | IsRunning () |
ThreadId | Id () const |
void * | _InternalRun () |
Additional Inherited Members | |
Static Public Member Functions inherited from ola::thread::Thread | |
static ThreadId | Self () |
|
virtual |
Stop the saving thread
Reimplemented from ola::thread::Thread.
|
virtual |
Called by the new thread.
Implements ola::thread::Thread.
void ola::FilePreferenceSaverThread::Syncronize | ( | ) |
This can be used to syncronize with the file saving thread. Useful if you want to make sure the files have been written to disk before continuing. This blocks until all pending save requests are complete.