mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-10 11:50:53 +00:00
win32 tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2767 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
c3757293f0
commit
73b5fcf641
3 files changed
+16
-4
No files matched your search
+6
-1
@@ -3511,12 +3511,17 @@ SWITCH_DECLARE(int32_t) set_high_priority(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_runtime_loop(int bg)
|
||||
{
|
||||
#ifdef WIN32
|
||||
HANDLE shutdown_event;
|
||||
char path[256] = "";
|
||||
#endif
|
||||
if (bg) {
|
||||
bg = 0;
|
||||
#ifdef WIN32
|
||||
snprintf(path, sizeof(path), "Global\\Freeswitch.%d", getpid());
|
||||
shutdown_event = CreateEvent(NULL, FALSE, FALSE, path);
|
||||
WaitForSingleObject(shutdown_event, INFINITE);
|
||||
#else
|
||||
runtime.running = 1;
|
||||
|
||||
Reference in new issue
Block a user