]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/async: fix duplicate definition errors from SharedMutexImpl 58722/head
authorCasey Bodley <cbodley@redhat.com>
Sat, 17 Sep 2022 18:46:19 +0000 (14:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Sun, 21 Jul 2024 14:27:17 +0000 (10:27 -0400)
commit4d288ac31ced0f626b3fdbcb5957b45907299744
tree87485d6145f6c22cee2386a0240107f33691ce50
parentd557013a4f70b9d8a6a2e6c5e73c6fee3106dc2a
common/async: fix duplicate definition errors from SharedMutexImpl

the linker complains that several SharedMutexImpl functions are
duplicated, if "common/async/shared_mutex.h" is included by more than
one translation unit

added 'inline' to the function definitions so they're shared instead of
duplicated

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/async/detail/shared_mutex.h