Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
ola::FilePreferenceSaverThread Class Reference

Detailed Description

The thread that saves preferences

Inheritance diagram for ola::FilePreferenceSaverThread:
Inheritance graph
Collaboration diagram for ola::FilePreferenceSaverThread:
Collaboration graph

Public Types

typedef std::multimap
< std::string, std::string > 

Public Member Functions

void SavePreferences (const std::string &filename, const PreferencesMap &preferences)
void * Run ()
bool Join (void *ptr=NULL)
void Synchronize ()
- Public Member Functions inherited from ola::thread::Thread
 Thread (const Options &options=Options())
 Create a new thread with the specified thread options. More...
virtual ~Thread ()
virtual bool Start ()
 Start the thread and wait for the thread to be running. More...
virtual bool FastStart ()
 Start the thread and return immediately. More...
bool IsRunning ()
 Check if the thread is running. More...
ThreadId Id () const
 Return the thread id. More...
std::string Name () const
 Return the thread name. More...

Additional Inherited Members

- Static Public Member Functions inherited from ola::thread::Thread
static ThreadId Self ()
 Returns the current thread's id. More...

Member Function Documentation

bool ola::FilePreferenceSaverThread::Join ( void *  ptr = NULL)

Stop the saving thread

Reimplemented from ola::thread::Thread.

void * ola::FilePreferenceSaverThread::Run ( )

Called by the new thread.

Implements ola::thread::Thread.

void ola::FilePreferenceSaverThread::Synchronize ( )

This can be used to synchronize 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.

The documentation for this class was generated from the following files: