From 7b088210cb4bf6e26fee4d05cc3d80cda2d2cd95 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 20 Sep 2006 16:35:12 +0200 Subject: [PATCH] Documented thread safety of ucwlib functions. --- lib/THREADS | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/THREADS diff --git a/lib/THREADS b/lib/THREADS new file mode 100644 index 00000000..1cb77b65 --- /dev/null +++ b/lib/THREADS @@ -0,0 +1,10 @@ +Generally, functions in the UCW library are reentrant as long as you call them +on different data. Calling on the same object is not, unless otherwise told, +which also includes functions acting on any kind of global state. + +There are some exceptions: + +- logging functions are safe as long as you don't switch log files +- setproctitle() is not safe, it modifies global state +- handle_signal() is not safe, it modifies global state +- stk_printf() is not safe, it currently uses a global buffer (FIXME!) -- 2.39.2