diff options
| author | Robin Hack <hack.robin@gmail.com> | 2015-01-23 15:15:04 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2015-01-28 17:17:07 +0100 |
| commit | 0830d93eece7e0d132c1513c195d7735cf3421da (patch) | |
| tree | 59402423dc0b87b5b22a95076f2844e028095b17 /python/examples/dnsserver.py | |
| parent | b21106a1a1c940151d2e56608aea35dab714b773 (diff) | |
| download | samba-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/examples/dnsserver.py')
0 files changed, 0 insertions, 0 deletions
