User:Kr/A Thread's Life/Library Example with SAL

From Apache OpenOffice Wiki
< User:Kr‎ | A Thread's Life
Revision as of 12:31, 5 October 2007 by Kr (Talk | contribs)

Jump to: navigation, search

SAL Thread Issues:

  • Missing pendant to "pthread_exit" / "ExitThread" and therefore also missing clean-up handlers etc.
  • Less capable cancellation mechanism compared to "pthread_cancel"
  • Different semantic of UNIX and Win32 implementations
  • Problematic "pthread_detach" in UNIX usage, likely leading to races if trying to join a thread.
  • Problematic "CloseHandle" in Win32 usage, only easily possible to create "detached" (daemon) threads if calling "osl_destroyThread" from within the new thread.
  • Result setting function.

RFE:

  • Reliable thread cancellation mechanism ...
Personal tools