File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "wait_on_address"
33description = " Cross-platform atomic wait and wake (aka futex) functionality."
44repository = " https://github.com/DouglasDwyer/wait_on_address"
55keywords = [" atomic" , " futex" ]
6- version = " 0.1.3 "
6+ version = " 0.1.4 "
77edition = " 2024"
88license = " BSD-2-Clause"
99categories = [" concurrency" , " os" , " no-std" ]
Original file line number Diff line number Diff line change 1+ use libc:: { c_long, time_t} ;
12use std:: {
23 sync:: atomic:: { AtomicU32 , AtomicU64 , Ordering } ,
34 time:: Duration ,
@@ -11,8 +12,8 @@ impl AtomicWaitImpl for AtomicU32 {
1112 fn wait_timeout ( & self , value : Self :: AtomicInner , timeout : Option < Duration > ) {
1213 unsafe {
1314 let wait_timespec = timeout. map ( |x| libc:: timespec {
14- tv_sec : x. as_secs ( ) as i64 ,
15- tv_nsec : x. subsec_nanos ( ) as i64 ,
15+ tv_sec : x. as_secs ( ) as time_t ,
16+ tv_nsec : x. subsec_nanos ( ) as c_long ,
1617 } ) ;
1718
1819 libc:: syscall (
You can’t perform that action at this time.
0 commit comments