Merge pull request #20574 from tchaikov/wip-no-more-hash-pthread-t

common/lockdep: drop hash<pthread_t> specialization

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
Kefu Chai 2018-02-24 18:03:14 +08:00 committed by GitHub
commit 215aa3a6bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,18 +15,6 @@
#include "common/dout.h"
#include "common/valgrind.h"
#if defined(__FreeBSD__) && defined(__LP64__) // On FreeBSD pthread_t is a pointer.
namespace std {
template<>
struct hash<pthread_t>
{
size_t
operator()(pthread_t __x) const
{ return (uintptr_t)__x; }
};
} // namespace std
#endif
/******* Constants **********/
#define lockdep_dout(v) lsubdout(g_lockdep_ceph_ctx, lockdep, v)
#define MAX_LOCKS 4096 // increase me as needed