X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdthreads.pod;h=71506e99e58beac49640be9b7313ab96da15dc84;hp=77690188a7dcb0c52611281eb4cfd9b750c2d650;hb=d4110e29da41ce702bcc3327e86768c6f266915e;hpb=e4acaa789385e98fe979cd48cb0fb1ddc8570b91 diff --git a/doc/rrdthreads.pod b/doc/rrdthreads.pod index 7769018..71506e9 100644 --- a/doc/rrdthreads.pod +++ b/doc/rrdthreads.pod @@ -20,26 +20,26 @@ In order to use librrd in multi-threaded programs you must: =over -=item * +=item * Link with F instead of F (use C<-lrrd_th> when linking) -=item * +=item * Use the "C<_r>" functions instead of the normal API-functions -=item * +=item * Do not use any at-style time specifications. Parsing of such time specifications is terribly non-thread-safe. -=item * +=item * Never use non *C<_r> functions unless it is explicitly documented that the function is tread-safe. -=item * +=item * Every thread SHOULD call C before its first call to any C function in order to set up thread specific data. This @@ -126,7 +126,7 @@ C as an example. =item * -Do not use the C function! +Do not use the C function! It uses lots of global variables. You may use it in functions not designed to be thread-safe, like in functions wrapping the C<_r> version of some @@ -137,7 +137,7 @@ operation (e.g., C, but not in C) =head2 CURRENTLY IMPLEMENTED THREAD SAFE FUNCTIONS Currently there exist thread-safe variants of C, -C, C, C and C. +C, C, C, C, and C. =head1 AUTHOR