Add client/server fromEnv() without temporary Config on caller stack
This commit is contained in:
1 parent
d6bf565ed6
commit
98edf61de8
18 files changed
+40
-22
No files matched your search
@@ -18,7 +18,7 @@ int main(int argc, char* argv[]) {
|
||||
logger_config_env();
|
||||
|
||||
// Configure client using $EPICS_PVA_*
|
||||
client::Context ctxt(client::Config::fromEnv().build());
|
||||
auto ctxt(client::Context::fromEnv());
|
||||
|
||||
// fetch PV "some:pv:name" and wait up to 5 seconds for a reply.
|
||||
// (throws an exception on error, including timeout)
|
||||
|
||||
Reference in new issue
Block a user