[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4943) tpool.c pause vs. finish
hyc@symas.com writes:
> h.b.furuseth@usit.uio.no wrote:
>> - TID_HASH() fails if several ldap_pvt_thread_t bit patterns can
>> represent the same thread ID, e.g. if it is a struct/integer type with
>> padding bytes/bits.
>>
> That doesn't matter, since the table will use linear probing to compare
> thread IDs.
Ah, it works when creating new threads. But not in pool_context(),
which stops searching when it hits an unused slot (thread ID tid_zero).
--
Regards,
Hallvard