cheshirekow  v0.1.0
fontconfig::Atomic Struct Reference

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< Atomiccreate (const Char8_t *file)
 create an FcAtomic object More...
 

Detailed Description

traits class for FcAtomic wrapper Used for locking access to configuration files. Provides a safe way to update configuration files.

Note
FcAtomic objects are not reference counted. Be sure to call destroy() on the last reference to an atomic object

Definition at line 128 of file Atomic.h.

Member Typedef Documentation

typedef FcAtomic* fontconfig::Atomic::cobjptr

Definition at line 132 of file Atomic.h.

Definition at line 130 of file Atomic.h.

typedef FcAtomic* fontconfig::Atomic::Storage

Definition at line 131 of file Atomic.h.

Member Function Documentation

static RefPtr<Atomic> fontconfig::Atomic::create ( const Char8_t file)
static

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.


The documentation for this struct was generated from the following file: