Re: [gomp4 5/8] libgomp: provide sem.h, mutex.h, ptrlock.h on nvptx

2015-09-24 Thread Jakub Jelinek
On Wed, Sep 23, 2015 at 08:22:19PM +0300, Alexander Monakov wrote: > This patch provides minimal non-stub implementations for libgomp > mutex/ptrlock/semaphore, using atomic ops and busy waiting. The goal here is > to at least provide stub struct declarations necessary to unbreak libgomp.h. > >

[gomp4 5/8] libgomp: provide sem.h, mutex.h, ptrlock.h on nvptx

2015-09-23 Thread Alexander Monakov
This patch provides minimal non-stub implementations for libgomp mutex/ptrlock/semaphore, using atomic ops and busy waiting. The goal here is to at least provide stub struct declarations necessary to unbreak libgomp.h. Atomics with busy waiting seems to be the only way to provide such primitives