Added more documentation on using libmemcached with threads.
authorBrian Aker <brian@tangent.org>
Fri, 23 Nov 2007 23:59:35 +0000 (15:59 -0800)
committerBrian Aker <brian@tangent.org>
Fri, 23 Nov 2007 23:59:35 +0000 (15:59 -0800)
docs/libmemcached.pod

index 9685e01e88614ee309c1c3dbf04332678df26691..510cd1e7200f58a274cefcd975fb6574bf5c51ad 100755 (executable)
@@ -51,6 +51,14 @@ Some features of the library must be enabled through memcached_behavior_set().
 
 Hope you enjoy it!
 
+=head1 THREADS AND PROCESSES
+
+When using threads or forked processes it is important to keep an instance
+of C<memcached_st> per process or thread. Without creating your own locking
+structures you can no share a single C<memcached_st>. You can though call
+memcached_close(3) on a C<memcached_st> and then use the resulting cloned
+structure.
+
 =head1 HOME
 
 To find out more information please check: