]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/hashmap.c
hashmap: debug - lock access to the global hashmap list 294/head
authorTom Gundersen <teg@jklm.no>
Thu, 18 Jun 2015 09:31:10 +0000 (11:31 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 18 Jun 2015 19:35:18 +0000 (21:35 +0200)
commit4f1b306169c2651f20a20befd18926677a272d8f
tree63eb77eb733d288d10c7aef9742a96445b1918f2
parentfd23f9c9a70e1214507641d327da40d1688b74d7
hashmap: debug - lock access to the global hashmap list

This may be used from multi-threaded programs (say through nss-resolve),
so we must protect the global list.

This is still only relevant for debug builds, so we do not try to handle
cases where the locking fail, but simply assert.
src/basic/hashmap.c