We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e80fd25 commit 032bffaCopy full SHA for 032bffa
src/libstd/thread/mod.rs
@@ -550,6 +550,7 @@ impl ThreadId {
550
// If we somehow use up all our bits, panic so that we're not
551
// covering up subtle bugs of IDs being reused.
552
if COUNTER == ::u64::MAX {
553
+ GUARD.unlock();
554
panic!("failed to generate unique thread ID: bitspace exhausted");
555
}
556
0 commit comments