Thread name may not be available during termination.

This commit is contained in:
Andrew Johnson
2009-04-08 22:39:27 +00:00
parent 6fd2685053
commit 134509a8ea
+2 -2
View File
@@ -26,7 +26,7 @@
typedef struct info {
const char *name;
char name[64];
epicsEventId terminate;
epicsEventId terminated;
}info;
@@ -55,7 +55,7 @@ static void thread(void *arg)
{
info *pinfo = (info *)arg;
pinfo->name = epicsThreadGetNameSelf();
strcpy(pinfo->name, epicsThreadGetNameSelf());
testDiag("%s starting", pinfo->name);
pinfo->terminate = epicsEventMustCreate(epicsEventEmpty);
pinfo->terminated = epicsEventMustCreate(epicsEventEmpty);