Details
-
Type:
Bug
-
Status: Open
-
Priority:
P2: Important
-
Resolution: Unresolved
-
Affects Version/s: 4.4.1, 4.6.1, 4.6.2, 5.2.1
-
Fix Version/s: Some future release
-
Component/s: Core: Threads
-
Labels:None
-
Environment:Linux, GCC 4.2
Description
When using QSystemSemaphore to solve producer-consumer communication between two processes. After 32767 acquire operations, the semaphore stops working. Try to acquire this semaphore 32768-th time returns false with error QSystemSemaphore::OutOfResources.
Attached is an example that reproduces the problem.
Create two instances of the application, one started with c and one with p (for producer and consumer).