Commit Graph

2757 Commits

Author SHA1 Message Date
Andrew Johnson 7eeb70a8d9 Added epicsStrHash() and epicsMemHash(), after analyzing several hash
functions found online and the two already in Base (which both perform
a memory lookup per character and are not as good as this one).
2009-03-19 17:44:22 +00:00
Jeff Hill dd54062496 fixed mantis 336 - timer queue should have try / catch block
around call to user's expiration callback
2009-03-13 17:23:07 +00:00
Jeff Hill edcb7b96f8 fixed removeAll does not set the nInUse count to zero 2009-03-04 22:00:55 +00:00
Andrew Johnson aadbf07647 Return epicsMutexLockError rather than calling cantProceed() if the
pthread_mutex_ functions return EINVAL.
2009-03-03 18:00:49 +00:00
Andrew Johnson 9c3fa668f3 Added epicsLoadLibrary() and some implementations. 2009-02-27 23:26:20 +00:00
Andrew Johnson a75cb10cb6 Added "errlog" command. 2009-02-24 20:10:57 +00:00
Andrew Johnson 07d187b77a Fix needed for g++ 4.1.2. 2009-02-23 22:51:50 +00:00
Jeff Hill 40c802ad7b moved declaration using template down to below where its template
parameter is declared in case inclass friend forward reference to the
template parameter doesnt carry forward on all compilers
2009-02-23 21:44:39 +00:00
Jeff Hill 68f6b7d47c workaround for archaic T202 g++ bug 2009-02-23 21:40:52 +00:00
W. Eric Norum ce3c3919ba Stephen Norum indicates that the conditionals are unnecessary. 2009-02-23 18:11:40 +00:00
W. Eric Norum e6b0b38f61 Starting in Mac OS X 10.5 (Leopard) shared libraries and bundles
don't have direct access to environ (man environ).
 CVS: ----------------------------------------------------------------------
2009-02-23 15:36:30 +00:00
Jeff Hill e1b8caa8d7 fixed comment 2009-02-10 22:58:43 +00:00
Jeff Hill 9f5b1a11da removed some epicsSingleton related code that isnt in use 2009-02-10 22:51:53 +00:00
Jeff Hill 62618480fd fixed mantis 332 2009-02-10 22:24:20 +00:00
Andrew Johnson f1a0584273 Fix gcc warnings. 2009-02-03 06:05:51 +00:00
Andrew Johnson 289f5500a4 Restart nanosleep() on EINTR. 2009-01-30 20:15:40 +00:00
Andrew Johnson ffe38fffb8 Don't forget to flush! 2009-01-28 21:16:39 +00:00
Andrew Johnson c85052de6c Fix errlogPrint and errlogVprintf so the latter outputs to the console. 2009-01-28 21:05:34 +00:00
Andrew Johnson 292a763d9a Enhance generalTime subsystem with interrupt-context time & event requests. 2009-01-28 20:01:41 +00:00
W. Eric Norum deae06a694 Reduce RTEMS stack sizes.
Use new RTEMS 'unified memory pools'.
2009-01-23 20:21:41 +00:00
Andrew Johnson 105448f3f8 Fix access to uninitialized memory. 2009-01-16 16:49: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 4026d9f27c Nested classes have no special access priviledges to their outer class, but
only the vxWorks compiler seems to check this.  Added friend to fix.
An implicit constructor is only created if no user-defined ones exist.
2009-01-06 21:53:04 +00:00
Andrew Johnson f14e6df788 Don't do necessary stuff inside assert(). 2009-01-06 17:07:56 +00:00
Andrew Johnson 12e4ad3c5a Cleanup. Handle re-initialization during shutdown gracefully. 2008-12-10 21:43:36 +00:00
Andrew Johnson 0be13dfc0f Added registryDump command. 2008-12-10 21:34:00 +00:00
Andrew Johnson 67ef06c1e3 Cleanup. 2008-12-10 21:32:06 +00:00
Andrew Johnson f951aab3f3 Fix possible race condition on SMP systems. 2008-12-09 21:46:40 +00:00
Andrew Johnson f3bcf735cc Bug fix reported by Jens Eden. 2008-12-04 23:38:47 +00:00
Andrew Johnson a58fa323d8 The pointer is volatile, not the object itself... 2008-12-01 17:03:03 +00:00
Andrew Johnson 79a2649596 Fixed problem with time provider registration on dual-CPU systems. 2008-11-21 23:23:25 +00:00
Jeff Hill e99e352e2c redesigned this facility for simplicity, clarity, and robustness 2008-11-19 17:20:15 +00:00
Jeff Hill fd5b03405a disable copy ctor and operator for the epicsOnceImpl private class 2008-11-19 17:11:49 +00:00
Andrew Johnson a37105e0c7 Fixed buffer overflow in thread name. 2008-11-16 17:32:58 +00:00
Andrew Johnson 01349a9448 Add epicsShare decorators for visibility in a Cygwin DLL. 2008-10-23 19:27:24 +00:00
Jeff Hill c5f15a3e17 fixed bug introduced after R3.14.9, but before R3.14.10-RC1 and R3.14.10-RC2 2008-10-21 20:26:48 +00:00
Andrew Johnson b3abcbb52e Don't fail if epicsSnprintf returns less than the buffer size needed. 2008-10-20 15:35:10 +00:00
W. Eric Norum 3b2bbd50e5 Cleaner version of wait with timeout fix. 2008-10-16 13:38:14 +00:00
W. Eric Norum ba5080d6f4 Return TIMEOUT status even when delay time is 0. 2008-10-15 19:40:57 +00:00
W. Eric Norum a6ed0d3a53 RTEMS newlib version of strtod handles INF/NAN. 2008-10-15 19:40:00 +00:00
W. Eric Norum 7245f8127c Arrange for compatability with compile-time and run-time linking. 2008-10-11 16:40:46 +00:00
Andrew Johnson 2eb849b91c Fix segfault on linux - catch(...) must not call std::unexpected() 2008-10-08 22:44:32 +00:00
Ralph Lange 1d6bea83de This is included from epicsEndian.h, so it must be usable from C and C++. 2008-10-08 10:31:44 +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
W. Eric Norum d579e30210 Prevent warnings -- test show that this still generates correct code. 2008-10-07 12:18:43 +00:00
W. Eric Norum 48257aec7c Fix race condition exposed by compilers with more agressive optimization.
Add test procedure for epicsRingBytes.
2008-10-07 11:05:41 +00:00
Andrew Johnson e97439c7df Ensure the last test actually completes and reports... 2008-10-03 19:28:34 +00:00
Andrew Johnson ec8761185d Another fix, for the SunPro compiler this time. 2008-09-30 17:24:11 +00:00
Jeff Hill 67e9d89ebd extended comment 2008-09-30 16:31:09 +00:00
Andrew Johnson d3eb8170ff Fix for vxWorks 6.x - don't use std::min/max. 2008-09-30 15:29:57 +00:00