]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/libcephfs: introduce (uint64_t)ceph_pthread_self() 31136/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 21 Sep 2019 12:51:06 +0000 (14:51 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 25 Oct 2019 11:15:45 +0000 (13:15 +0200)
commit37e33b392e8428144503ca9b5e1cd3ee571e5b28
treed55e6b2cf48ebdfe06eecfbfbd3b171f79cee7a5
parent0be0fdfdd1ddccc7e77e19b145215dc8ce24b1d2
test/libcephfs: introduce (uint64_t)ceph_pthread_self()

There is a  difference between libc shipped with FreeBSD and
glibc shipped with GNU/Linux for the return type of pthread_self().

Introduced a conversion function in include/compat.h
    (uint64_t)ceph_pthread_self()

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
(cherry picked from commit d388dae58f4c271516e4b79cebb7b822f6499ae5)
src/test/libcephfs/ceph_pthread_self.h [new file with mode: 0644]
src/test/libcephfs/flock.cc
src/test/libcephfs/recordlock.cc