Difference between revisions of "User:Kr/A Thread's Life/Library Example with SAL"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (More Issues ...)
m
Line 5: Line 5:
 
* Problematic "pthread_detach" in UNIX usage, likely leading to races if trying to join a thread.
 
* 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.
 
* 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 ...

Revision as of 12:31, 5 October 2007

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