diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2019-05-19 13:17:13 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2019-05-19 13:17:13 +0200 |
commit | d826ec981a19ff7aba3d34dc29f5e5911335ad90 (patch) | |
tree | 3d8c945690f028e592c7f7992aa57e75e3018ef4 /man/el_init.3 | |
parent | aa129653848fc690e38d98c27ba3efa5e3810006 (diff) | |
download | embedlog-d826ec981a19ff7aba3d34dc29f5e5911335ad90.tar.gz embedlog-d826ec981a19ff7aba3d34dc29f5e5911335ad90.tar.bz2 embedlog-d826ec981a19ff7aba3d34dc29f5e5911335ad90.zip |
add thread safety to library
embedlog now can be safely used in multi-thread environment, that
implements pthread.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Diffstat (limited to 'man/el_init.3')
-rw-r--r-- | man/el_init.3 | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/man/el_init.3 b/man/el_init.3 index d1ac078..6c52a69 100644 --- a/man/el_init.3 +++ b/man/el_init.3 @@ -26,26 +26,6 @@ Another type are functions that accept additional argument. These functions are prefixed with .BR el_o . .PP -All functions (el_o or not) are "line" thread-safe (provided that -.B \-\-enable\-reentrant -is turned on). -That means library buffers whole line before it calls -.B puts -function, so lines in output will not overlap. -.PP -NOTE: this may not be entirely true for every operating system there is! Yes, -.B embedlog -will always buffer and print whole lines, but OS may, for example interrupt -.B puts -call from thread1, and call -.B puts -from thread2. -In such case output will be mangled with 2 different lines. -While this situation is very rare, it's only fair to mention it. -If in doubt, check -.B stdio -implementation in your operating system. -.PP .BR el_init (3) initializes static global option structure. This option structure is used by all functions that don't accept |