From 43f82a5c8c2eb2dc8fee989f019c7b25e0a7f80a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 28 Aug 2008 15:27:04 +0000 Subject: [PATCH] Ensure the main thread gets a unique ID. --- src/libCom/osi/epicsThread.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libCom/osi/epicsThread.cpp b/src/libCom/osi/epicsThread.cpp index ae72294cc..40b2e4798 100644 --- a/src/libCom/osi/epicsThread.cpp +++ b/src/libCom/osi/epicsThread.cpp @@ -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();