Ensure the main thread gets a unique ID.

This commit is contained in:
Andrew Johnson
2008-08-28 15:27:04 +00:00
parent 0a393c6553
commit 43f82a5c8c

View File

@@ -1,10 +1,9 @@
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
//
@@ -320,3 +319,6 @@ extern "C" {
return id;
}
} // extern "C"
// Ensure the main thread gets a unique ID
epicsThreadGetIdSelf();