]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: avoid using pthread native handle if not available
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 18 Apr 2023 14:50:41 +0000 (14:50 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 30 Aug 2023 12:59:00 +0000 (12:59 +0000)
commit129fa17caa8bb022ca3c13a9aed83b22fe09e208
tree2c6b31e8b93f57c3eb5272fe73e85ce6351cc817
parent4a0dceec99c003bb624f561757185f4603d7badc
common: avoid using pthread native handle if not available

Especially when targeting Windows, llvm may not necessarily
use pthreads for std::thread. In this case, we must not use the
"native" thread handle with the pthreads API.

We'll update the ceph_pthread_getname and ceph_pthread_setname
wrappers, adding a new one: ceph_pthread_kill.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/Thread.cc
src/common/ceph_timer.h
src/include/compat.h