EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Area Detector and high performance NVME devices
From: "Engbretson, Mark S." <[email protected]>
To: "Rivers, Mark L." <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 30 Jun 2017 00:08:13 +0000
But wait . . . It can not work that way. Threads pop in and out of existence all the time. They may or may not use the HDF5 libraries, but if they do, they certainly would not want to have a dependency on code or constructs that could go "poof" at any instant.

What i want is an effect more like just opening 2 or more distinct files at once. If they are doing totally different things, with totally unrelated life cycles, what is the mutex protecting? 

On Jun 29, 2017, at 18:16, Mark Rivers <[email protected]> wrote:

What you propose would not work, because the problem is not in NDFileHDF5.cpp, it is in the underlying HDF5 library.  There are global structures there that you would not be making multiple instances of, so they need to be protected by the mutex.

-----Original Message-----
From: Mark S. Engbretson [mailto:[email protected]] 
Sent: Thursday, June 29, 2017 5:05 PM
To: [email protected]; Mark Rivers
Cc: [email protected]
Subject: RE: Area Detector and high performance NVME devices

For the sake of argument, what would happen if instead of creating multiple
instances of the HDF File plugin, which is actually the exact same entity, I
instead cloned the NDFileHDF5.cpp sources and made it a couple of unique
plugins named <NDFileHDF5>_A,B,C,and D. I can do this on windows system and
force every thread to have its own unique copy everything, so there is no
conflicts in non thread safe code just as you would not expect any mutex
issues from another process running on the system. 

I know that I should technically be able to use constructs such as  

void *handle1 = dlmopen(LM_ID_NEWLM, "/path/to/library.so", RTLD_NOW);
void *handle2 = dlmopen(LM_ID_NEWLM, "/path/to/library.so", RTLD_NOW);

Where the references is to the same shared library, but via difference
handles don't conflict.  But there should be easier ways to achieve the same
effect. I.e, with multiple file plugins, there are no common anythings that
should need that mutex lock or could be trashed.



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Thursday, June 29, 2017 9:34 AM
To: [email protected]; [email protected]
Cc: [email protected]
Subject: RE: Area Detector and high performance NVME devices

Replies:
RE: Area Detector and high performance NVME devices ulrik.pedersen
RE: Area Detector and high performance NVME devices Mark Rivers
References:
Area Detector and high performance NVME devices Mark S. Engbretson
RE: Area Detector and high performance NVME devices Mark Rivers
RE: Area Detector and high performance NVME devices Mark S. Engbretson
RE: Area Detector and high performance NVME devices Mark Rivers
RE: Area Detector and high performance NVME devices Mark S. Engbretson
Re: Area Detector and high performance NVME devices ulrik.pedersen
RE: Area Detector and high performance NVME devices Mark S. Engbretson
RE: Area Detector and high performance NVME devices ulrik.pedersen
RE: Area Detector and high performance NVME devices Mark Rivers
RE: Area Detector and high performance NVME devices Mark S. Engbretson
RE: Area Detector and high performance NVME devices ulrik.pedersen
RE: Area Detector and high performance NVME devices Mark S. Engbretson
RE: Area Detector and high performance NVME devices Mark Rivers

Navigate by Date:
Prev: RE: Area Detector and high performance NVME devices Mark Rivers
Next: RE: Area Detector and high performance NVME devices ulrik.pedersen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Area Detector and high performance NVME devices Mark Rivers
Next: RE: Area Detector and high performance NVME devices ulrik.pedersen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024