close the handle
This commit is contained in:
@@ -103,8 +103,8 @@ static void osdTimeInit ()
|
||||
LARGE_INTEGER parm;
|
||||
BOOL success;
|
||||
int unixStyleStatus;
|
||||
HANDLE osdTimeThread;
|
||||
unsigned threadAddr;
|
||||
unsigned long handle;
|
||||
FILETIME epicsEpochFT;
|
||||
DWORD status;
|
||||
|
||||
@@ -173,11 +173,14 @@ static void osdTimeInit ()
|
||||
//
|
||||
// spawn off a thread which periodically resynchronizes the offset
|
||||
//
|
||||
handle = _beginthreadex ( NULL, 4096, osdTimeSynchThreadEntry,
|
||||
osdTimeThread = (HANDLE) _beginthreadex ( NULL, 4096, osdTimeSynchThreadEntry,
|
||||
0, 0, &threadAddr );
|
||||
if ( handle == NULL ) {
|
||||
if ( osdTimeThread == NULL ) {
|
||||
errlogPrintf ( "osdTimeInit(): unable to start time synch thread\n" );
|
||||
}
|
||||
else {
|
||||
assert ( CloseHandle ( osdTimeThread ) );
|
||||
}
|
||||
|
||||
atexit ( osdTimeExit );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user