Fix compilation errors on Windows

This commit is contained in:
Cameron Gutman 2016-03-02 13:46:03 -05:00
parent 51e5b89018
commit c44cdffdd5

View File

@ -114,9 +114,6 @@ int PltIsThreadInterrupted(PLT_THREAD* thread) {
void PltInterruptThread(PLT_THREAD* thread) {
thread->cancelled = 1;
#if defined(LC_WINDOWS)
SetEvent(thread->termRequested);
#endif
}
int PltCreateThread(ThreadEntry entry, void* context, PLT_THREAD* thread) {
@ -134,7 +131,7 @@ int PltCreateThread(ThreadEntry entry, void* context, PLT_THREAD* thread) {
#if defined(LC_WINDOWS)
{
thread->handle = CreateThread(NULL, 0, ThreadProc, ctx, 0, &thread->tid);
thread->handle = CreateThread(NULL, 0, ThreadProc, ctx, 0, NULL);
if (thread->handle == NULL) {
free(ctx);
return -1;