Andrew Johnson
177090e35e
Merged fixes for lp:1558206 and lp:1563191 from 3.14 branch, revno 12622
2016-03-30 11:26:53 -05:00
Andrew Johnson
3179e65791
Clean-up after lp:1558206 fix
2016-03-16 18:15:14 -05:00
Michael Davidsaver
6b9bfb09a5
pWaitRelease in wrong place
...
waitRelease==false indicates that pThread
has not be delete'd
2016-03-16 17:43:52 -04:00
Michael Davidsaver
4e312b9f64
libCom: exitWait() from thread exit handler corrupts stack
...
The epicsThreadCallEntryPoint() function stores a pointer
to a local variable in epicsThread::pWaitReleaseFlag.
Calling epicsAtThreadExit::exitWait() from that thread's
epicsAtThreadExit() handler writes to this pointer
after epicsThreadCallEntryPoint() has returned.
Thus corrupting the stack.
Set pWaitReleaseFlag=NULL before return to prevent this.
fixes lp:1558206
2016-03-16 14:40:37 -04:00
Andrew Johnson
8fde7fb4f3
Merged changes from 3.14 branch
...
Fixed issues building on Solaris.
Up to revno 12497.
2014-09-25 16:34:12 -05:00
Jeff Hill
5a11866431
when finished waiting for a thread to exit, signal the event in case other threads are waiting also
2011-01-14 18:01:53 -07:00
Andrew Johnson
fbda9f3280
RCS keyword updates for Bazaar
...
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
Jeff Hill
d84e9cb3ec
exp passed to assert must not change the state of the data structures
2009-08-24 17:08:41 +00:00
Andrew Johnson
87eace1bd4
Fix for solaris compiler complaint about ambiguity of 'exception'.
2009-08-18 19:26:37 +00:00
Jeff Hill
0012042a5e
accomodate archaic vxWorks gnu compiler
2009-08-14 17:31:34 +00:00
Jeff Hill
78fc566dc4
improved thread creation failure exception diagnostics
2009-08-14 16:54:45 +00:00
Jeff Hill
6fe047731f
added shjow func to epicsThread class
2009-08-10 21:48:50 +00:00
Andrew Johnson
68bdaa899e
Fixes to allow building on Solaris. Its <cxxx> headers are evidently not
...
quite drop-in C++ replacements for the <xxx.h> C versions.
2009-06-02 22:31:46 +00:00
Jeff Hill
20bd4e9b23
fixed no try catch block for exceptions occurring when fetching the time to print a diagnostic message in the last chance exception handler.
2009-05-11 21:52:19 +00:00
Andrew Johnson
a7a6c01bea
Removed the pthread_cancel() functionality from posix/osdThread.c,
...
resolving the whole issue with catch(...) on NPTL.
2009-01-06 23:06:25 +00:00
Andrew Johnson
2eb849b91c
Fix segfault on linux - catch(...) must not call std::unexpected()
2008-10-08 22:44:32 +00:00
Andrew Johnson
f58002e1fd
Exception classes don't need to derive from std::exception,
...
this can cause build faults on some architectures.
2008-10-07 15:19:35 +00:00
Andrew Johnson
ec8761185d
Another fix, for the SunPro compiler this time.
2008-09-30 17:24:11 +00:00
Andrew Johnson
d3eb8170ff
Fix for vxWorks 6.x - don't use std::min/max.
2008-09-30 15:29:57 +00:00
Jeff Hill
21e8912031
fixed conditional
2008-09-24 16:29:50 +00:00
Jeff Hill
7f96b9c0fc
added try / catch block to epicsThread :: exoitWait () so that exception
...
specification isnt violated
2008-09-24 15:57:28 +00:00
Andrew Johnson
14ea2740d1
Oops.
2008-08-28 15:42:09 +00:00
Andrew Johnson
43f82a5c8c
Ensure the main thread gets a unique ID.
2008-08-28 15:27:04 +00:00
Andrew Johnson
52b7171576
Moved testMain.h into libCom/misc, since db/test is built before libCom/test.
2006-11-10 22:43:04 +00:00
Jeff Hill
f01f981e54
standards unconformant C++ compilers (such as msvs 6.0) dont like
...
a std:: in front of the cal to unexpected()
2005-11-14 16:18:06 +00:00
W. Eric Norum
55ad29ffd2
Remove extraneous semicolon. New versions of gcc complain about it.
2005-07-06 21:39:41 +00:00
Jeff Hill
54a5a71377
fixed throw spec
2004-10-08 16:55:58 +00:00
Jeff Hill
7571947ceb
o fixed "no exception thrown if epicsThreadCreate() return nill"
...
o added epicsThreadMustCreate
o cleaned up thread rundown blocking
o header file need not include exception support
2004-10-08 14:46:48 +00:00
Jeff Hill
361d617ede
o fixed so that a thread that has not began will terminate if another thread
...
calls exit wait
o use independent event semaphore assisting these two threads to block
1) spawned thread
2) thread waiting for spawned thread to exit
2004-10-01 23:27:25 +00:00
Jeff Hill
23be13bd5b
fixed cast
2004-09-30 19:14:23 +00:00
Jeff Hill
9f8e75b945
o print date when unexpected exception occurs
...
o call std::unexpected() when unexpected exception occurs
2004-09-29 17:39:17 +00:00
Marty Kraimer
8148784a20
exitWait ( double delay ) => exitWait (const double delay )
2004-07-16 12:53:56 +00:00
Marty Kraimer
629b14d3d4
epicsThreadIsOkToBlock epicsThreadSetOkToBlock only for calling thread
2004-07-13 14:49:18 +00:00
Marty Kraimer
f54d1ca30a
epicsThreadIsOkToBlock epicsThreadSetOkToBlock only for calling thread
2004-07-13 13:35:35 +00:00
Marty Kraimer
f2fc8f8838
ShellContext=>OkToBlock
2004-07-09 17:53:54 +00:00
Marty Kraimer
b97efc9f7d
implement ShellContext
2004-07-09 16:05:53 +00:00
Jeff Hill
bb05cea3c1
fixed solaris warnings
2004-01-23 19:55:11 +00:00
Jeff Hill
6d5061781c
fixed race condition at thread exit
2003-05-23 00:11:59 +00:00
Jeff Hill
55b51195f4
workaround for visual c++ 6.0 not compatible with c++ standards
2003-03-19 15:44:31 +00:00
Jeff Hill
fc543b5647
better message when a C++ exception terminates a C++ thread
2003-02-21 23:55:39 +00:00
Jeff Hill
f9a30fac96
fix sunpro and ms warning
2002-12-05 21:58:24 +00:00
Jeff Hill
f2ccfaf1de
certain functions are nolonger inline
2002-10-23 22:19:28 +00:00
Janet B. Anderson
93b0bf478d
Updated license comments.
2002-07-12 21:35:43 +00:00
Jeff Hill
9b5a9bf454
fixed no \n at end of message
2002-06-13 17:20:35 +00:00
Jeff Hill
c4c7ee7803
added exit and waitRelease capabilities to epicsThread class
2002-05-14 20:24:49 +00:00
Jeff Hill
e788adc650
fixed sun pro warning
2002-05-09 17:25:34 +00:00
Jeff Hill
ff05ad2dc3
reduced thread entry function scoppe to static
2002-05-08 23:14:46 +00:00
Jeff Hill
75ed067b7d
allow derived class destructor to wait for thread exit
2002-04-19 18:03:48 +00:00
Jeff Hill
75b572be78
improved dll interface
2002-03-22 02:03:18 +00:00
Jeff Hill
94fa715e96
added const to show () vf
2001-02-15 21:09:52 +00:00