Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Noel Grandin via Cygwin
On 5/30/2024 11:15 AM, Bruno Haible wrote: Still: Does ReleaseSRWLockExclusive notify other threads? Of course? How else would a lock work, it must release other waiters? It might not be a fair lock though, which is not a problem for this situation, which does not require fair locking.

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Noel Grandin via Cygwin
On 5/30/2024 10:47 AM, Bruno Haible wrote: SRW locks are spin-locks. Since they are only pointer-sized, ReleaseSRWLockExclusive cannot notify other threads — unlike CRITICAL_SECTION. Therefore, AcquireSRWLockExclusive must busy-loop when the lock is already held. No, they only spin briefly,

Re: possible snprintf() regression in 3.3.2

2021-11-18 Thread Noel Grandin via Cygwin
On 2021/11/18 3:19 pm, Corinna Vinschen via Cygwin wrote: My patch raised NDEC from 43 to 1023 to allow aproximately the same number of digits as glibc. Newlib strives to support embedded targets and bare metal. Some of them are lucky if they have a stack size of 1K. The outbuf buffer is cre

Re: Curiosity about file access performance

2021-10-29 Thread Noel Grandin via Cygwin
There are a bunch of different possibilities (*) temporary files - there was an improvement here in recent cygwin versions which means that if your machine has lots of memory and your program creates lot of temporary files, then it will now be significantly faster (*) file name lookup - linux

Re: AF_UNIX/SOCK_DGRAM is dropping messages

2021-04-06 Thread Noel Grandin via Cygwin
On 2021/04/01 6:02 pm, Ken Brown via Cygwin wrote: Here's the issue, briefly.  The communication is done via a Windows named pipe. The receiver creates the pipe when it creates and binds its socket.  It creates only one pipe instance.  The sender connects to the pipe, writes, and closes its h

Re: PTHREAD_PROCESS_SHARED not implemented (was PTHREAD_MUTEX_SHARED on Cygwin)

2021-01-10 Thread Noel Grandin via Cygwin
On 2021/01/10 12:16 am, Brian Inglis wrote: For more about Windows limitations and alternatives see: https://www.boost.org/doc/libs/1_75_0/doc/html/interprocess/sharedmemorybetweenprocesses.html#interprocess.sharedmemorybetweenprocesses.sharedmemory.emulation For the specific case of int

Re: FILE_ATTRIBUTE_TEMPORARY ?

2021-01-06 Thread Noel Grandin via Cygwin
On 2021/01/06 11:44 am, Mark Geisert wrote: Hi Noel, That looks like a bug to me, unless I'm missing something subtle there; I'll submit a patch and find out. Thanks! Cool thanks! -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documenta

FILE_ATTRIBUTE_TEMPORARY ?

2021-01-06 Thread Noel Grandin via Cygwin
Hi Does the cygwin tempfile() API use the Win32 FILE_ATTRIBUTE_TEMPORARY flag on the files it creates? Asking because that makes a fairly significant performance difference when creating very short lived temp files. Thanks, Noel Grandin -- Problem reports: https://cygwin.com/prob