]> mj.ucw.cz Git - libucw.git/blob - lib/THREADS
Documented thread safety of ucwlib functions.
[libucw.git] / lib / THREADS
1 Generally, functions in the UCW library are reentrant as long as you call them
2 on different data. Calling on the same object is not, unless otherwise told,
3 which also includes functions acting on any kind of global state.
4
5 There are some exceptions:
6
7 - logging functions are safe as long as you don't switch log files
8 - setproctitle() is not safe, it modifies global state
9 - handle_signal() is not safe, it modifies global state
10 - stk_printf() is not safe, it currently uses a global buffer (FIXME!)