Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-11-08 Thread Jason Newton
age does. I'll ask > the Arch > >>>> >>>> package maintainer if he's willing to do the same. > >>>> >>>> > >>>> >>>> I've confirmed now that I don't have any problems with my > program if I > >>>> >>>> re-

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-11-08 Thread Samer Afach
package maintainer if he's willing to do the same. > >>>> >>>> > >>>> >>>> I've confirmed now that I don't have any problems with my > program if I > >>>> >>>> re-built the Arch package with --enable-threadsafe > >>>

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-11-08 Thread Elvis Stansvik
the info! >>>> >>>> >>>> >>>> Elvis >>>> >>>> >>>> >>>>> Scot >>>> >>>>> >>>> >>>>> >>>> >>>>>> On Sep 22, 2016, a

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-11-08 Thread Elvis Stansvik
gt; >>>>> >>>> >>>>>> On Sep 22, 2016, at 12:36 PM, Elvis Stansvik >>>> >>>>>> <elvis.stans...@orexplore.com> wrote: >>>> >>>>>> >>>> >>>>>> 2016-09-22 19:

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-11-08 Thread Samer Afach
and thanks for the quick reply. I think we > just e-mailed > >>>>>>> past > >>>>>>> each other (see my previous mail). > >>>>>>> > >>>>>>> I wrongly called it --thread-safe in t

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-11-08 Thread Elvis Stansvik
revious mail). > >>>>>>> > >>>>>>> I wrongly called it --thread-safe in that mail, but it was > >>>>>>> --enable-threadsafe I was referring to. But yes, I'm pretty sure > this > >>>>>>> is the problem. >

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
;>>> is the problem. >>>>>>> >>>>>>> I'm rebuilding the Arch package now with --enable-threadsafe. >>>>>> >>>>>> I spoke a little too soon. I now found this bug filed against the Arch >>>>>> pa

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
Hdf-forum [mailto:hdf-forum-boun...@lists.hdfgroup.org] On Behalf Of > Elvis Stansvik > Sent: Thursday, September 22, 2016 2:35 PM > To: HDF Users Discussion List <hdf-forum@lists.hdfgroup.org> > Subject: Re: [Hdf-forum] Simply using the library from separate threads (C++ > API) > >

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Dana Robinson
rum@lists.hdfgroup.org> Subject: Re: [Hdf-forum] Simply using the library from separate threads (C++ API) 2016-09-22 20:25 GMT+02:00 Werner Benger <wer...@cct.lsu.edu>: > There was some recent discussion that only the C API of HDF5 is > threadsafe, but not the C++ layer on top of

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
y previous mail). >>>>>>> >>>>>>> I wrongly called it --thread-safe in that mail, but it was >>>>>>> --enable-threadsafe I was referring to. But yes, I'm pretty sure this >>>>>>> is the problem. >>>>>>> &

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Werner Benger
oid From: Elvis Stansvik Sent: Thursday, September 22, 12:43 Subject: [Hdf-forum] Simply using the library from separate threads (C++ API) To: HDF Users Discussion List Hi all, I'm using the C++ API to read HDF5 files from separate threads (no writing). None of my threads read the same file, but they d

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
September 22, 2016 2:16 PM > To: HDF Users Discussion List <hdf-forum@lists.hdfgroup.org> > Subject: Re: [Hdf-forum] Simply using the library from separate threads (C++ > API) > > 2016-09-22 19:58 GMT+02:00 Scot Breitenfeld <brtn...@hdfgroup.org>: >> Yes it is still

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
nable-threadsafe, >>>> but the package maintainer closed the bug saying that >>>> --enable-threadsafe is not compatible with the Fortran build (in Arch, >>>> the C++ and Fortran APIs are bundled into one package >>>> hdf5-cpp-fortran). >>>> &g

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Dana Robinson
gt;> >> Anyone know if that is still the case? If so I can't open a bug >> against the package again asking for --enable-threadsafe to be added. >> But I could open a bug asking the package to be split I guess. >> >> Elvis >> >>> >>> Elvis >&

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Werner Benger
s. Elvis Elvis Dana Robinson Software Engineer The HDF Group Get Outlook for Android From: Elvis Stansvik Sent: Thursday, September 22, 12:43 Subject: [Hdf-forum] Simply using the library from separate threads (C++ API) To: HDF Users Discussion List Hi all, I'm using the C++ API to read HDF5 fil

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
gt;> against the package again asking for --enable-threadsafe to be added. >> But I could open a bug asking the package to be split I guess. >> >> Elvis >> >>> >>> Elvis >>> >>>> >>>> Dana Robinson >>>> Softwa

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Scot Breitenfeld
ase? If so I can't open a bug > against the package again asking for --enable-threadsafe to be added. > But I could open a bug asking the package to be split I guess. > > Elvis > >> >> Elvis >> >>> >>> Dana Robinson >>> Software Engineer

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
en a bug asking the package to be split I guess. Elvis > > Elvis > >> >> Dana Robinson >> Software Engineer >> The HDF Group >> >> Get Outlook for Android >> >> From: Elvis Stansvik >> Sent: Thursday, September 22, 12:43 >> Su

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
gt; Get Outlook for Android > > From: Elvis Stansvik > Sent: Thursday, September 22, 12:43 > Subject: [Hdf-forum] Simply using the library from separate threads (C++ > API) > To: HDF Users Discussion List > > Hi all, I'm using the C++ API to read HDF5 files from separate t

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Dana Robinson
using the library from separate threads (C++ API) To: HDF Users Discussion List Hi all, I'm using the C++ API to read HDF5 files from separate threads (no writing). None of my threads read the same file, but they do execute simultaneously. The reason I'm using threading is not to speed things up

Re: [Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
Just after I sent my mail I found the information at https://support.hdfgroup.org/hdf5-quest.html#tsafe So in short, the HDF5 library needs to be built with --thread-safe in order to be thread-safe, and will then effectively serialize all library calls. This happens to be OK in my case,

[Hdf-forum] Simply using the library from separate threads (C++ API)

2016-09-22 Thread Elvis Stansvik
Hi all, I'm using the C++ API to read HDF5 files from separate threads (no writing). None of my threads read the same file, but they do execute simultaneously. The reason I'm using threading is not to speed things up or get better throughput, but simply to not block the UI (it's Qt application)