diff options
author | Jeremy Allison <jra@samba.org> | 2015-03-16 12:17:40 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-03-17 16:48:07 +0100 |
commit | 61e0a67c552d28c7544399fe07f381eab673e726 (patch) | |
tree | cf7e71b6a8b95b8f0d0d8a5d4ae294d88e9b9621 /lib/talloc/talloc_guide.txt | |
parent | 9139caa57a4247ecaa71d6f86db2f79ec20f8140 (diff) | |
download | samba-61e0a67c552d28c7544399fe07f381eab673e726.tar.gz |
lib: docs: talloc: Add a threads tutorial and samples showing how to use talloc with threads.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo <simo@samba.org>
Diffstat (limited to 'lib/talloc/talloc_guide.txt')
-rw-r--r-- | lib/talloc/talloc_guide.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/talloc/talloc_guide.txt b/lib/talloc/talloc_guide.txt index 16afc9b6b8a..95f7f295e8c 100644 --- a/lib/talloc/talloc_guide.txt +++ b/lib/talloc/talloc_guide.txt @@ -69,7 +69,8 @@ order to be safe. In particular: - when using talloc_enable_leak_report(), giving directly NULL as a parent context implicitly refers to a hidden "null context" global variable, so this should not be used in a multi-threaded environment -without proper synchronization ; +without proper synchronization. In threaded code turn off null tracking using +talloc_disable_null_tracking(). ; - the context returned by talloc_autofree_context() is also global so shouldn't be used by several threads simultaneously without synchronization. |