[Haiku-commits] r27268 - haiku/trunk/src/system/kernel/posix
Ingo Weinhold
ingo_weinhold at gmx.de
Wed Sep 3 23:21:33 CEST 2008
On 2008-09-03 at 16:47:25 [+0200], Salvatore Benedetto <emitrax at gmail.com>
wrote:
> As for now there is a limit of MAX_XSI_SEMAPHORE set to 2048, which is
> the total number
> of semaphores (not sets) that one create in the system. It's a static
> limit of course,
> and in the future could be based on available memory. We could add a
> limit to the
> total number of set as well and prevent any sort of bad situation from
> happening.
I guess we'll have to see what ports actually use XSI semaphores and how. For
now the limit is fine.
> Of course the limit must be lower than the maximun value the counter can
> reach.
The two aren't really related. The counter wouldn't be a unique
identification anyway. It's just a means to keep the probability for this
weird race condition low.
CU, Ingo
More information about the Haiku-commits
mailing list