diff options
| author | Anoop C S <anoopcs@redhat.com> | 2017-03-28 07:13:47 +0000 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2018-05-02 16:31:37 +0200 |
| commit | b6909fc91d5d16ced108700cbd5cd8a13481a6c4 (patch) | |
| tree | f09e4ed2eaf6968783c4d258a9e30d9a6bba3253 /tests | |
| parent | 501b5f3e6444117dab213f8a3dfdda0a860ecde9 (diff) | |
| download | socket_wrapper-b6909fc91d5d16ced108700cbd5cd8a13481a6c4.tar.gz socket_wrapper-b6909fc91d5d16ced108700cbd5cd8a13481a6c4.tar.xz socket_wrapper-b6909fc91d5d16ced108700cbd5cd8a13481a6c4.zip | |
swrap: Implement thread safety using pthread mutexes
Added a new mutex variable to socket_info structure along with
new macros for locking and unlocking mutex corresponding to
each socket_info entry. Apart from individual mutex defined in
socket_info structure, 4 new mutexes are added to protect the
concurrent access of globally used swrap parameters from different
threads.
All other individual wrappers and helper routines are also made
capable of acquiring relevant mutex locks before operating on such
global parameters.
Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
