summaryrefslogtreecommitdiffstats
path: root/python/wscript_build
diff options
context:
space:
mode:
authorRobin Hack <hack.robin@gmail.com>2015-01-23 15:15:04 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-01-28 17:17:07 +0100
commit0830d93eece7e0d132c1513c195d7735cf3421da (patch)
tree59402423dc0b87b5b22a95076f2844e028095b17 /python/wscript_build
parentb21106a1a1c940151d2e56608aea35dab714b773 (diff)
downloadsamba-0830d93eece7e0d132c1513c195d7735cf3421da.tar.gz
samba-0830d93eece7e0d132c1513c195d7735cf3421da.tar.xz
samba-0830d93eece7e0d132c1513c195d7735cf3421da.zip
uwrap: Optimalization of uid_wrapper_enabled() function.
Check only bool variable inside uwrap structure instead of calling whole uid_init(). In the best case only one mutex lock is need when check. NOTES: * This patch uses __atomic_load gcc builtin function. * uid_init() were moved outside uid_wrapper_enabled() function. Signed-off-by: Robin Hack <hack.robin@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'python/wscript_build')
0 files changed, 0 insertions, 0 deletions