Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-10 09:31:43 +0400
committerChristopher Faylor <me@cgf.cx>2002-10-10 09:31:43 +0400
commitb01ff453d9a8e19b1eeb3874e327b18d54f2bf46 (patch)
treece30492a43a7328642869d9632d49707ebb3ce90
parent2a3bf3e2cee2ddce5d6f6951d948a307260015e8 (diff)
* window.cc (gethwnd): Use SetThreadPriority method.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/window.cc15
2 files changed, 11 insertions, 8 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7ed69ffaf..f383b6d01 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2002-10-10 Christopher Faylor <cgf@redhat.com>
+ * window.cc (gethwnd): Use SetThreadPriority method.
+
+2002-10-10 Christopher Faylor <cgf@redhat.com>
+
* Makefile.in (new-cygwin1.dll): Reorganize library order.
* dcrt0.cc (do_exit): Move thread stuff after vfork stuff or threads
diff --git a/winsup/cygwin/window.cc b/winsup/cygwin/window.cc
index 04ce590ee..7c67fae26 100644
--- a/winsup/cygwin/window.cc
+++ b/winsup/cygwin/window.cc
@@ -103,10 +103,10 @@ Winmain (VOID *)
}
/* Create hidden window. */
- ourhwnd = CreateWindow (classname, classname,
- WS_POPUP, CW_USEDEFAULT, CW_USEDEFAULT,
- CW_USEDEFAULT, CW_USEDEFAULT, (HWND) NULL,
- (HMENU) NULL, user_data->hmodule, (LPVOID) NULL);
+ ourhwnd = CreateWindow (classname, classname, WS_POPUP, CW_USEDEFAULT,
+ CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
+ (HWND) NULL, (HMENU) NULL, user_data->hmodule,
+ (LPVOID) NULL);
SetEvent (window_started);
@@ -119,9 +119,7 @@ Winmain (VOID *)
/* Start the message loop. */
while (GetMessage (&msg, ourhwnd, 0, 0) == TRUE)
- {
- DispatchMessage (&msg);
- }
+ DispatchMessage (&msg);
return msg.wParam;
}
@@ -136,9 +134,10 @@ gethwnd ()
window_started = CreateEvent (&sec_none_nih, TRUE, FALSE, NULL);
h = new cygthread (Winmain, NULL, "win");
- SetThreadPriority (*h, THREAD_PRIORITY_HIGHEST);
+ h->SetThreadPriority (THREAD_PRIORITY_HIGHEST);
WaitForSingleObject (window_started, INFINITE);
CloseHandle (window_started);
+ h->zap_h ();
return ourhwnd;
}