cheshirekow
v0.1.0
|
traits class for FcAtomic wrapper Used for locking access to configuration files. Provides a safe way to update configuration files. More...
#include <cpp_fontconfig/Atomic.h>
Public Types | |
typedef FcAtomic * | cobjptr |
typedef AtomicDelegate | Delegate |
typedef FcAtomic * | Storage |
Static Public Member Functions | |
static RefPtr< Atomic > | create (const Char8_t *file) |
create an FcAtomic object More... | |
traits class for FcAtomic wrapper Used for locking access to configuration files. Provides a safe way to update configuration files.
typedef FcAtomic* fontconfig::Atomic::cobjptr |
typedef FcAtomic* fontconfig::Atomic::Storage |
create an FcAtomic object
Creates a data structure containing data needed to control access to file. Writing is done to a separate file. Once that file is complete, the original configuration file is atomically replaced so that reading process always see a consistent and complete file without the need to lock for reading.