Commit Graph

139 Commits

Author SHA1 Message Date
Michael Davidsaver 6a46e44da9 fix SharedPV onLastDisconnect when not open() 2020-08-10 12:09:55 -07:00
Michael Davidsaver 67843eb392 more config 2020-08-10 12:09:55 -07:00
Michael Davidsaver 47594c9528 more testpvreq 2020-08-10 12:09:55 -07:00
Michael Davidsaver 33b6f362db client: Handle orphaned Operations
Allow Operation instances to outlive
the Context through which they were
created.
2020-08-10 12:09:55 -07:00
Michael Davidsaver 2d475eed74 Add Context::request() builder 2020-07-26 20:46:12 -07:00
Michael Davidsaver ce80e8897b Pass SharedPV& to onFirstConnect()/onLastDisconnect()
For consistency among the on*() callbacks.
2020-07-26 20:46:12 -07:00
Michael Davidsaver 24f3478c98 post() with const ref.
Added "safety" of passing move-able reference
is an illusion since no use_count()==1 test
is done.  Instead extra (shallow) copies
were made for each subscriber.

Instead.  Pass const reference, redefine
MonitorControlOp::post() to transfer ownership,
and make only a single copy in SharedPV::post().
2020-07-26 20:46:12 -07:00
Michael Davidsaver 7debb1fae3 update Config handling
rename from_env() -> fromEnv()
add fromDefs()
2020-07-26 20:46:12 -07:00
Michael Davidsaver c282d94621 testdata MSVC TODO 2020-07-22 11:26:41 -07:00
Michael Davidsaver f4576d4c33 Include input string when reporting parsing error (as NoConvert) 2020-07-22 11:14:57 -07:00
Michael Davidsaver 5210b7041d fix TypeDef amend 2020-07-22 11:14:57 -07:00
Michael Davidsaver 90203c9b86 truncate when storing scalar numeric 2020-07-19 21:07:15 -07:00
Michael Davidsaver 06e26a0ec5 Value iteration take 3 2020-07-19 21:07:15 -07:00
Michael Davidsaver 0e972ecc71 more testshared 2020-07-19 21:07:15 -07:00
Michael Davidsaver 2381f28c73 allow unselection/clear of Union/Any 2020-07-19 21:07:15 -07:00
Michael Davidsaver f22715063c allow Union deref w/o field name 2020-07-19 21:07:15 -07:00
Michael Davidsaver 38c15e655f fix/test allocArray 2020-07-19 21:07:15 -07:00
Michael Davidsaver f2777e319b fix shared_array::convertTo() 2020-07-16 12:37:48 -07:00
Michael Davidsaver 290a2689fc add Value::lookup() 2020-07-16 12:37:48 -07:00
Michael Davidsaver bb7ac1e8e6 rework iteration, extend to Union 2020-07-16 12:37:48 -07:00
Michael Davidsaver b9e025a6dd Value::compareType() -> Value::equalType() 2020-07-03 20:54:47 -07:00
Michael Davidsaver 479f0f1f4d fix spelling in public headers 2020-07-03 20:54:47 -07:00
Michael Davidsaver 651d7d18fb test template methods of TypeDef 2020-06-29 07:36:23 -07:00
Michael Davidsaver 73314e5f35 add testnt 2020-06-25 17:26:02 -07:00
Michael Davidsaver 7a9d5cb6ab WIN32: SetErrorMode(0) 2020-06-16 16:39:00 -07:00
Michael Davidsaver 64d0505610 epicsEnvUnset compat 2020-06-11 09:56:29 -07:00
Michael Davidsaver d6156890f4 print array of quoted strings 2020-06-09 15:03:02 -07:00
Michael Davidsaver 92ea351ebf testrpc: fix race in cancel 2020-05-22 09:17:33 -07:00
Michael Davidsaver 2d075cbc1c testsock show errno 2020-05-22 09:17:22 -07:00
Michael Davidsaver a556e7e290 fix array of scalar xcode 2020-05-18 19:01:37 -07:00
Michael Davidsaver 609768a33d add client channel cache
Maintain unused channels for 20 seconds before closing.
2020-05-07 18:45:16 -07:00
Michael Davidsaver 88d23a0314 shared_array add iterator range ctor 2020-04-21 14:37:29 -07:00
Michael Davidsaver 7e6a08def7 fix Delta print of Union 2020-04-17 14:19:30 -07:00
Michael Davidsaver d89d925e19 re-enable epicsEnvUnset() 2020-04-16 22:01:38 -07:00
Klemen Vodopivec 02f24a74e7 Made it build on EPICS 3.14.12.6, all unit tests pass. 2020-04-16 22:01:38 -07:00
Michael Davidsaver bcea4f032a server missing channel onClose 2020-04-12 23:29:30 -07:00
Michael Davidsaver 20c4ff0c26 test for Context leak
Tests should only hold a single Context pointer
2020-04-12 22:30:30 -07:00
Michael Davidsaver d8cd01ee83 only automatically link libevent for PROD/LIB using libpvxs 2020-04-09 20:40:09 -07:00
Michael Davidsaver 7a2ab35439 check instance counters in cleanup_for_valgrind() 2020-04-07 12:05:29 -07:00
Michael Davidsaver 8c86aff970 consolidate Value::from() and assign() 2020-04-01 17:50:20 -07:00
Michael Davidsaver e2513db4d9 MSVC need osiSockAttach() 2020-03-31 13:07:50 -07:00
Michael Davidsaver d5c59d1cfd StoreTransform 2020-03-26 09:04:44 -07:00
Michael Davidsaver 39c270c379 StoreAs reduce boilerplate 2020-03-26 09:04:44 -07:00
Michael Davidsaver d811485b90 revise shared_vector casting
Rename existing castTo() as castToUnsafe().
Add new castTo() which is doesn't allow non-void -> non-void
and may throw on void -> non-void
2020-03-26 09:04:44 -07:00
Michael Davidsaver dff97c3fdf test array of scalar xcode 2020-03-23 21:39:33 -07:00
Michael Davidsaver 783281d137 fix Makefile
premature cleverness
2020-03-23 21:39:33 -07:00
Michael Davidsaver d452e009ce libevent 2.0 compat 2020-03-20 09:23:06 -07:00
Michael Davidsaver d73c20b9ba avoid multi-line raw strings
some gcc 4.8.x have a bug.

The 4.8 in the ubuntu-toolchain-r-test repo doesn't like
these, but the 4.8 in RHEL7 does.
2020-03-19 17:15:53 -07:00
Michael Davidsaver 078e0ea69f sharedArray formatting with size limit. 2020-03-19 17:15:53 -07:00
Michael Davidsaver 1953fbacba Value.format() 2020-03-19 17:15:53 -07:00