]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/Event: change to use pthread_t to indicate whether the same thread
authorHaomai Wang <haomai@xsky.com>
Tue, 28 Jun 2016 04:11:13 +0000 (12:11 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 29 Jun 2016 04:14:29 +0000 (12:14 +0800)
commitada84e7c7d6a2b542ca96f4e077c03c05efe67f9
treeb2a557535fd32b8f20b59d4275c3481d48d7e8ea
parentbe8dec5597c5227f45f82e38c0361a77ea57cf2a
msg/async/Event: change to use pthread_t to indicate whether the same thread

thread_local has problem in TmapMigratePP.DataScan case that it will be
assigned to zero unexpectedly.

pthread_t is much cheaper than gettid since it's a library implementation.

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/Event.cc
src/msg/async/Event.h