Don't invoke undefined behavior when getting the pthread_t out of std::thread::id
authorChristopher Dykes <cdykes@fb.com>
Mon, 17 Apr 2017 22:40:29 +0000 (15:40 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 17 Apr 2017 22:57:28 +0000 (15:57 -0700)
commit43c0c2c5bf5288e64e15edba105d864986c76add
tree907579b67b3a1ff2a5eb08694e3c6ba405d279dd
parent532b8c01aa05334af612233137a836bfe45c3c78
Don't invoke undefined behavior when getting the pthread_t out of std::thread::id

Summary: This assumes I understand strict-aliasing rules correctly.

Reviewed By: yfeldblum

Differential Revision: D4900118

fbshipit-source-id: edba535d3ba799ac665d3f859dc4154b2c1b22cb
folly/ThreadName.h