Skip to content
Permalink
af68184db9
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) 949 Bytes
#include "IOProcessor.hpp"
DWORD IOProcessor::threadInit(LPVOID pIOProcessor)
{
((IOProcessor*) pIOProcessor)->threadRuntime();
return 0;
}
UINT8 IOProcessor::startThread(LPVOID pThreadArgs)
{
this->threadArgs = pThreadArgs;
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)
{
}