aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/sqlite/sqlite_database.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-04-17 10:47:32 +0200
committerTobias Brunner <tobias@strongswan.org>2014-04-24 17:54:15 +0200
commit73c33ff42318809a002e10b6e117104b4e48d30d (patch)
tree31f7c266ac9fc10c363ef4d53efd80266803e965 /src/libstrongswan/plugins/sqlite/sqlite_database.c
parent7b08063e70d916b16f1de2dba22110a92f7ff598 (diff)
downloadstrongswan-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/libstrongswan/plugins/sqlite/sqlite_database.c')
0 files changed, 0 insertions, 0 deletions