Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libpthread



> - Always create LWPs detached. Do join/exit sync mostly in userland. When
>   looped on a dual core box this seems ~30% quicker than using lwp_wait().
>   Reduce number of lock acquire/release ops during thread exit.

- you don't need to check EINTR from pthread_cond_wait.
- pthread_cond_wait doesn't release the mutex on errors.
- what's pt_droplock for?  pthread_cond_wait doesn't use pthread__cancelled.
  why don't you use pthread_cleanup_push?
- what's pthread_mutex_held_np in pthread__cancelled for?

YAMAMOTO Takashi



Home | Main Index | Thread Index | Old Index