Luca Bacci <[email protected]> wrote:

> +static struct {
> +  winpthreads_table_t table;
> +  CRITICAL_SECTION lock;
> +} downlevel;

I want to remove any use of `CRITICAL_SECTION` from winpthreads. On pre-Vista, 
`InitializeCriticalSection` may raise `STATUS_NO_MEMORY ` exception under low 
memory conditions.

Please consider using `pthread_spinlock_t` (same as error checking stalled 
mutex) or `pthread_mutex_t` instead; corresponding `pthread_*_init` function 
simply fails with `ENOMEM` or `EAGAIN` in such case.

- Kirill Makurin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to