mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Linux fix
This commit is contained in:
parent
95c876570f
commit
49b124e291
2 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue