NVDA Helper
In-process and lite high-speed utilities for NVDA
log.cpp File Reference
#include <string>
#include <queue>
#include <mutex>
#include <crtdbg.h>
#include <remote/nvdaControllerInternal.h>
#include "nvdaHelperRemote.h"
#include <common/log.h>

Go to the source code of this file.

Functions

void __stdcall log_flushQueue_apcFunc (ULONG_PTR data)
 
void log_flushQueue ()
 
void logMessage (int level, const wchar_t *msg)
 
int NVDALogCrtReportHook (int reportType, const wchar_t *message, int *returnValue)
 

Variables

std::deque< std::tuple< int, std::wstring > > logQueue
 
std::mutex logQueueLock
 

Function Documentation

◆ log_flushQueue_apcFunc()

void __stdcall log_flushQueue_apcFunc ( ULONG_PTR data)

References log_flushQueue().

Referenced by log_flushQueue(), and logMessage().

◆ log_flushQueue()

◆ logMessage()

◆ NVDALogCrtReportHook()

int NVDALogCrtReportHook ( int reportType,
const wchar_t * message,
int * returnValue )

Variable Documentation

◆ logQueue

std::deque<std::tuple<int, std::wstring> > logQueue

Referenced by log_flushQueue(), and logMessage().

◆ logQueueLock

std::mutex logQueueLock

Referenced by log_flushQueue(), and logMessage().