Use anonymous events for synchronization.
This commit is contained in:
parent
5f1b258c9c
commit
53a0c30078
|
@ -220,7 +220,7 @@ void UpdateApplicationListControlViewSetting(void)
|
||||||
DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter)
|
DWORD WINAPI ApplicationPageRefreshThread(void *lpParameter)
|
||||||
{
|
{
|
||||||
/* Create the event */
|
/* Create the event */
|
||||||
hApplicationPageEvent = CreateEvent(NULL, TRUE, TRUE, _T("Application Page Event"));
|
hApplicationPageEvent = CreateEvent(NULL, TRUE, TRUE, NULL);
|
||||||
|
|
||||||
/* If we couldn't create the event then exit the thread */
|
/* If we couldn't create the event then exit the thread */
|
||||||
if (!hApplicationPageEvent)
|
if (!hApplicationPageEvent)
|
||||||
|
|
|
@ -333,7 +333,7 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
||||||
TCHAR Text[260];
|
TCHAR Text[260];
|
||||||
|
|
||||||
/* Create the event */
|
/* Create the event */
|
||||||
hPerformancePageEvent = CreateEvent(NULL, TRUE, TRUE, _T("Performance Page Event"));
|
hPerformancePageEvent = CreateEvent(NULL, TRUE, TRUE, NULL);
|
||||||
|
|
||||||
/* If we couldn't create the event then exit the thread */
|
/* If we couldn't create the event then exit the thread */
|
||||||
if (!hPerformancePageEvent)
|
if (!hPerformancePageEvent)
|
||||||
|
|
|
@ -495,7 +495,7 @@ DWORD WINAPI ProcessPageRefreshThread(void *lpParameter)
|
||||||
ULONG OldProcessCount = 0;
|
ULONG OldProcessCount = 0;
|
||||||
|
|
||||||
/* Create the event */
|
/* Create the event */
|
||||||
hProcessPageEvent = CreateEvent(NULL, TRUE, TRUE, _T("Process Page Event"));
|
hProcessPageEvent = CreateEvent(NULL, TRUE, TRUE, NULL);
|
||||||
|
|
||||||
/* If we couldn't create the event then exit the thread */
|
/* If we couldn't create the event then exit the thread */
|
||||||
if (!hProcessPageEvent)
|
if (!hProcessPageEvent)
|
||||||
|
|
Loading…
Reference in New Issue