mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
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:
commit
215aa3a6bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user