diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2014-04-17 10:47:32 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2014-04-24 17:54:15 +0200 |
| commit | 73c33ff42318809a002e10b6e117104b4e48d30d (patch) | |
| tree | 31f7c266ac9fc10c363ef4d53efd80266803e965 /src/libcharon/plugins/socket_default/socket_default_socket.h | |
| parent | 7b08063e70d916b16f1de2dba22110a92f7ff598 (diff) | |
| download | strongswan-73c33ff42318809a002e10b6e117104b4e48d30d.tar.bz2 strongswan-73c33ff42318809a002e10b6e117104b4e48d30d.tar.xz | |
bus: Add a fast-path if log messages don't have to be logged
For some rwlock_t implementations acquiring the read lock could be quite
expensive even if there are no writers (e.g. because the implementation
requires acquiring a mutex to check for writers) particularly if the
lock is highly contended, like it is for the vlog() method.
Diffstat (limited to 'src/libcharon/plugins/socket_default/socket_default_socket.h')
0 files changed, 0 insertions, 0 deletions
