Commit Graph

87 Commits

Author SHA1 Message Date
Matej Sekoranja
042d4ba805 status initialization order fixed 2011-07-29 12:37:58 +02:00
Marty Kraimer
0363478df9 added POINTER_DEFINITIONS to status.h 2011-07-01 07:47:22 -04:00
Marty Kraimer
0a744984ca moved POINTER_DEFS from pvAccess.h to sharedPtr.h 2011-07-01 07:37:18 -04:00
Marty Kraimer
619534b984 include files put into include/pv 2011-06-07 08:30:15 -04:00
Matej Sekoranja
fae332c09f shared pointer def 2011-05-10 10:01:14 +02:00
Marty Kraimer
95ae684d3d add == for introspection; == of PVField is done in base class via convert.
Make monitorQueue compatible with monitor, i.e. shared_pointer
2011-04-27 08:27:10 -04:00
Matej Sekoranja
b45b965f14 added shared_pointer typedefs, monitor.h IF changed to used shared_pointers 2011-04-24 23:56:58 +02:00
Marty Kraimer
f611f0550b add method to messageQueue. Reorganize includes in CDRMonitor.h 2011-04-21 05:23:20 -04:00
Marty Kraimer
efdef77461 fix bug in Convert.cpp; In misc add virtual destructor to abstract classes 2011-04-12 08:26:58 -04:00
Marty Kraimer
323a2d7321 major changes to monitor. Bug in Convert::copyScalar (change every break to rerurn); minor change to StandardPVField and queueVoid 2011-04-05 08:37:16 -04:00
Matej Sekoranja
617871ece9 static initialization fixed 2011-03-08 21:42:36 +01:00
Michael Davidsaver
c75c5fcfa6 Let Thread specify stack size 2011-03-07 12:23:51 -05:00
Michael Davidsaver
226cc62771 identify OSX 2011-03-07 12:23:51 -05:00
Michael Davidsaver
899c22fbf8 tr1 shared_ptr 2011-03-07 12:23:51 -05:00
Michael Davidsaver
fa77eacd4e use epicsMutex for Mutex
Now non-copyable, wasn't before...
2011-03-07 12:23:51 -05:00
Michael Davidsaver
4c88ef8e99 switch to epicsThread
Create a thin wrapper to account for the current interface and behavior
differences.
2011-03-07 12:23:51 -05:00
Michael Davidsaver
0c61ac0833 stack traces with any exception class
Define THROW_EXCEPTION(E) which takes an exception class instance,
and uses it to construct an instance of a class which is a subclass
of E and ExceptionMixin.  The original instance is discarded, and
the newly constructed sub-class is thrown.  Equivalent to
"throw E;".

Define THROW_EXCEPTION2(ETYPE,MSG) which takes an exception class
type, and argument.  Directly constructs a ExceptionMixin sub-class
with the given message argument.  Equivalent to
"throw ETYPE(MSG);".

Define PRINT_EXCEPTION2(E, FP) If E is a instance of a sub-class of
ExceptionMixin then write information to FP (FILE*).

Define SHOW_EXCEPTION(E) If E is a instance of a sub-class of
ExceptionMixin then return a std::string with information.
2011-03-07 12:23:51 -05:00
Matej Sekoranja
9fd158df1f string serialization optimization 2011-03-04 12:13:57 +01:00
Matej Sekoranja
4c7784671b recalculateWordsInUse fix 2011-03-01 23:02:34 +01:00
Marty Kraimer
6d3ef2f5b6 use & instead of * in misc.
Simplify lock.h
2011-02-18 08:17:17 -05:00
Matej Sekoranja
b0c04eea53 Status changes 2011-02-17 01:21:16 +01:00
Michael Davidsaver
bb6cf7c00b avoid method resolution problem from diamond inheritance
Serializable -> SerializableArray
Serializable -> PVField
SerializableArray -> PVArray
PVField -> PVArray

Thus for PVArray the members of SerializeSerializable are reachable
by two paths.  This means that The vtable for PVArray has two seperate
entries for serialize.

Correct resolution is to use virtual inheritance to avoid the
ambiguity.
2011-02-15 11:39:38 -05:00
Michael Davidsaver
afa17f8f4f CDRMonitor: print to streams 2011-02-09 21:07:52 -05:00
Michael Davidsaver
89f5e27577 not everything is boolean
Use correct calls to (de)serialize POD types
2011-02-09 21:07:52 -05:00
Michael Davidsaver
72b5354cb5 CDRMonitor: NDEBUG 2011-02-08 13:28:02 -05:00
Michael Davidsaver
7d3e58fcc9 CDRMonitor: lazy node creation 2011-02-08 13:28:02 -05:00
Michael Davidsaver
29bbaa60f6 Merge remote branch 'origin/master'
* origin/master:
  change #ifndef name
  static init. problem removed
2011-02-04 16:29:30 -05:00
Michael Davidsaver
624dff139d executor: revise run and shutdown
Instead of a flag use a special marker Command inserted into
the queue.
2011-02-04 16:22:15 -05:00
Michael Davidsaver
6a5e908509 timer: avoid unnecessary allocations
Rename *Pvt types to *::Pvt
2011-02-04 16:22:15 -05:00
Michael Davidsaver
2a4f614b7a thread: avoid unnecessary allocations
Use auto_ptr<> for pImpl

Eliminate redundant ThreadListElement class.  It just contains
a Thread* and a ThreadListNode which contains itself?

Make thread main function a static class function to avoid
problems with accessing private members of ThreadPvt.
In this context "private" means used by the implementation
class only.
2011-02-04 16:22:15 -05:00
Michael Davidsaver
07487c1a7b lock: unique_lock not unlocking
oops
2011-02-04 16:22:15 -05:00
Marty Kraimer
71cc5e625d change #ifndef name 2011-02-03 09:16:11 -05:00
Matej Sekoranja
e6c521bfb9 static init. problem removed 2011-02-02 20:34:56 +01:00
Michael Davidsaver
a67a9a5eaa Merge
update test baselines
  rename showConstructDestruct.h to CDRMonitor.h
  undercounting field
  switch tests to CDRMonitor
  switch remaining to use REFCOUNT macros
  Use epicsThreadOnce for safe lazy initialization
  replace ShowConstructDestruct with simpler CDRMonitor
  executor: remove redundant allocations
  lock: Partial implementation of Boost lock templates

Conflicts:
	pvDataApp/misc/StatusCreateFactory.cpp
	pvDataApp/misc/bitSet.cpp
2011-02-02 11:16:03 -05:00
Matej Sekoranja
43bbae6658 static creation fixed 2011-02-02 16:22:22 +01:00
Michael Davidsaver
8adb8b7766 rename showConstructDestruct.h to CDRMonitor.h 2011-02-02 10:11:07 -05:00
Michael Davidsaver
4a65bf9342 switch remaining to use REFCOUNT macros 2011-02-02 10:11:07 -05:00
Michael Davidsaver
099215986f Use epicsThreadOnce for safe lazy initialization
Also use epicsAtExit to handle cleanup.
2011-02-02 10:11:07 -05:00
Michael Davidsaver
d8fe325dc0 replace ShowConstructDestruct with simpler CDRMonitor
Hold counters internally instead of exposing (and duplicating)
counting code in other compile units

Remove deleteFunc list.  This should be handled by another mechanism.
CDRMonitor is debugging code.

Use internal singly linked list to avoid special handling of
LinkedList.
2011-02-02 10:11:07 -05:00
Michael Davidsaver
302d3fe5d2 executor: remove redundant allocations 2011-02-02 09:14:46 -05:00
Michael Davidsaver
b4c48449a8 lock: Partial implementation of Boost lock templates
lock_guard - simple RAII for a mutex

unique_lock - Also allows release/re-acquire after
construction while ensuring that the mutex is
unlocked when the object is destructed.
2011-02-02 09:14:46 -05:00
Matej Sekoranja
698f4911ba BaseException fix and cleanup. 2011-01-28 19:50:05 +01:00
Marty Kraimer
ad9633c8f6 moved pvType.h from misc to pv.
Made changes to make it clear that is defining the pvData primitive types for pvData.
2011-01-28 08:22:46 -05:00
Marty Kraimer
d79a24208e added include to status.h 2011-01-21 10:04:51 -05:00
Matej Sekoranja
12b7a51ea7 bitSet serialization 2011-01-16 23:50:56 +01:00
Matej Sekoranja
fb664aa4bd fixed macro 2011-01-13 00:52:30 +01:00
Marty Kraimer
608d74c400 Fix many memory leaks 2011-01-12 10:28:00 -05:00
Matej Sekoranja
571405d6b2 fixed wrong delete 2011-01-03 12:47:22 +01:00
Matej Sekoranja
7d9b5ce725 added convenience macros 2011-01-02 10:47:08 +01:00
Matej Sekoranja
3f9852bd58 random access byteBuffer 2011-01-01 21:25:23 +01:00