[Date Prev][Date Next]
Re: why slap_get_time()?
At 07:09 PM 2001-11-12, Lawrence Greenfield wrote:
>I was talking to Mark Adamson today and he pointed out that there's a
>slap_get_time() function that serializes calls to time().
That likely is a left over from old U-Mich LDAP code.
>I don't see any explanation for this in the code, not can I think of
>why time() wouldn't be thread safe.
time(3), which usually is written using gettimeofday(2), should
be thread-safe. Like you, I suspect that mutex is unnecessary.