Difference between revisions of "User:Kr/A Thread's Life/Library Example with SAL"
From Apache OpenOffice Wiki
< User:Kr | A Thread's Life
m |
m (More Issues ...) |
||
Line 3: | Line 3: | ||
* Less capable cancellation mechanism compared to "pthread_cancel" | * Less capable cancellation mechanism compared to "pthread_cancel" | ||
* Different semantic of UNIX and Win32 implementations | * Different semantic of UNIX and Win32 implementations | ||
− | * Problematic "pthread_detach" in UNIX usage, likely leading to races. | + | * 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. |
Revision as of 15:43, 4 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.