OutputCollector Class

Definition

Line 8 of threadSynchronization/threadSynchronization.cm

Constructors & Destructor

static OutputCollector()
private OutputCollector()

Member Functions

public void EnqueueLine(const String<char>& line)
public void Exit()
public static OutputCollector& Instance()
private bool OutputLinesAvailableOrExiting(void* arg)
public void Run()

Member Variables

private bool exiting
private static UniquePtr<OutputCollector> instance
private ConditionVariable outputAvailableOrExiting
private List<String<char>> outputLines
private RecursiveMutex outputMutex

Constructor& Destructor Details

OutputCollector Static Constructor

static OutputCollector()

Definition
Line 10 of threadSynchronization/threadSynchronization.cm


OutputCollector Constructor

private OutputCollector()

Definition
Line 17 of threadSynchronization/threadSynchronization.cm


Member Function Details

EnqueueLine Member Function

public void EnqueueLine(const String<char>& line)

Definition
Line 20 of threadSynchronization/threadSynchronization.cm


Exit Member Function

public void Exit()

Definition
Line 48 of threadSynchronization/threadSynchronization.cm


Instance Static Member Function

public static OutputCollector& Instance()

Definition
Line 13 of threadSynchronization/threadSynchronization.cm


OutputLinesAvailableOrExiting Member Function

private bool OutputLinesAvailableOrExiting(void* arg)

Definition
Line 54 of threadSynchronization/threadSynchronization.cm


Run Member Function

public void Run()

Definition
Line 26 of threadSynchronization/threadSynchronization.cm