Re: Atomics in C++11

2019-09-20 Thread Nicholas Krause
On 9/20/19 4:43 PM, Joel Sherrill wrote: On Fri, Sep 20, 2019, 3:12 PM Nicholas Krause wrote: On 9/20/19 4:09 PM, Jason Merrill wrote: On Fri, Sep 20, 2019 at 8:32 AM Nicholas Krause wrote: I was wondering if its possible to use the C11 atomics library for multithreading GCC. Not sure i

Re: Atomics in C++11

2019-09-20 Thread Joel Sherrill
On Fri, Sep 20, 2019, 3:12 PM Nicholas Krause wrote: > > On 9/20/19 4:09 PM, Jason Merrill wrote: > > On Fri, Sep 20, 2019 at 8:32 AM Nicholas Krause > wrote: > >> I was wondering if its possible to use the C11 atomics library for > >> multithreading > >> > >> GCC. Not sure if its a good idea du

Re: Atomics in C++11

2019-09-20 Thread Nicholas Krause
On 9/20/19 4:09 PM, Jason Merrill wrote: On Fri, Sep 20, 2019 at 8:32 AM Nicholas Krause wrote: I was wondering if its possible to use the C11 atomics library for multithreading GCC. Not sure if its a good idea due to concerns about older plaforms not having a C11 supported libraries or comp

Re: Atomics in C++11

2019-09-20 Thread Jason Merrill
On Fri, Sep 20, 2019 at 8:32 AM Nicholas Krause wrote: > I was wondering if its possible to use the C11 atomics library for > multithreading > > GCC. Not sure if its a good idea due to concerns about older plaforms > not having a C11 supported libraries or compiler. I've been wondering if it's ti

Atomics in C++11

2019-09-20 Thread Nicholas Krause
Greetings, I was wondering if its possible to use the C11 atomics library for multithreading GCC. Not sure if its a good idea due to concerns about older plaforms not having a C11 supported libraries or compiler. If not then the best way is pthreads key support and other posix thread supp