Skip to content
Permalink
8bcf32fcd8
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
43 lines (34 sloc) 948 Bytes
#include "IOProcessor.hpp"
DWORD IOProcessor::threadInit(LPVOID pThreadArgs)
{
IOProcessor* pIOProcessor = (IOProcessor*)pThreadArgs;
pIOProcessor->threadRuntime(pIOProcessor);
return 0;
}
UINT8 IOProcessor::startThread()
{
hThread = CreateThread(
NULL, // default security attributes
0, // use default stack size
threadInit, // thread function name
this, // argument to thread function
0, // use default creation flags
&dwThreadId); // returns the thread identifier
return TRUE;
}
BOOL IOProcessor::waitForThread()
{
WaitForSingleObject(hThread, INFINITE);
return TRUE;
}
BOOLEAN bufferDataAvailable()
{
return FALSE;
}
SIZE_T getBufferData(LPCSTR* bufferKeyArray, LPCSTR* bufferValueArray)
{
return 0;
}
VOID setDataStoreValue(LPCSTR key, LPCVOID value, SIZE_T valueSize)
{
}