Skip to content

Commit

Permalink
Implement requires_synchronized_create() for Redox
Browse files Browse the repository at this point in the history
This was breaking the libstd build for Redox.
  • Loading branch information
ids1024 committed May 21, 2017
1 parent 14f30da commit f4147e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libstd/sys/redox/thread_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ pub unsafe fn set(key: Key, value: *mut u8) {
pub unsafe fn destroy(key: Key) {
keys().remove(&key);
}

#[inline]
pub fn requires_synchronized_create() -> bool {
false
}

0 comments on commit f4147e5

Please sign in to comment.