1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Linux fix

This commit is contained in:
Brian Fiete 2020-08-31 14:16:58 -07:00
parent 95c876570f
commit 49b124e291
2 changed files with 7 additions and 0 deletions

View file

@ -192,9 +192,14 @@ void Thread::StartInternal()
BfInternalThread* internalThread = SetupInternalThread();
internalThread->mThread = this;
#ifdef _WIN32
internalThread->mThreadHandle = BfpThread_Create(CStartProc, (void*)this, GetMaxStackSize(), (BfpThreadCreateFlags)(BfpThreadCreateFlag_StackSizeReserve | BfpThreadCreateFlag_Suspended), &internalThread->mThreadId);
SetInternalThread(internalThread);
BfpThread_Resume(internalThread->mThreadHandle, NULL);
#else
internalThread->mThreadHandle = BfpThread_Create(CStartProc, (void*)this, GetMaxStackSize(), (BfpThreadCreateFlags)(BfpThreadCreateFlag_StackSizeReserve), &internalThread->mThreadId);
SetInternalThread(internalThread);
#endif
}
int Thread::GetThreadId()

View file

@ -186,6 +186,7 @@ namespace IDE
AddFromLibraryPath(absPath);
absPath.Append(Path.DirectorySeparatorChar);
#if !CLI
FileSystemWatcher watcher = new FileSystemWatcher(absPath);
watcher.OnChanged.Add(new (fileName) => LibsChanged());
watcher.OnCreated.Add(new (fileName) => LibsChanged());
@ -194,6 +195,7 @@ namespace IDE
watcher.OnError.Add(new () => LibsChanged());
watcher.StartRaisingEvents();
mWatchers.Add(watcher);
#endif
}
}