File tree Expand file tree Collapse file tree 4 files changed +2
-26
lines changed Expand file tree Collapse file tree 4 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 1- // Copyright 2021 Developers of Pyroscope.
2-
3- // Licensed under the Apache License, Version 2.0 <LICENSE or
4- // https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5- // except according to those terms.
6-
71use super :: TimerSignal ;
82use crate :: utils:: check_err;
93use crate :: utils:: get_time_range;
Original file line number Diff line number Diff line change 1- // Copyright 2021 Developers of Pyroscope.
2-
3- // Licensed under the Apache License, Version 2.0 <LICENSE or
4- // https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5- // except according to those terms.
6-
71use super :: TimerSignal ;
82use crate :: utils:: check_err;
93use crate :: utils:: get_time_range;
@@ -145,8 +139,8 @@ impl Timer {
145139 filter : libc:: EVFILT_TIMER ,
146140 flags : libc:: EV_ADD | libc:: EV_ENABLE ,
147141 fflags : 0 ,
148- data : duration. as_millis ( ) ,
149- udata : std :: ptr :: null ( ) ,
142+ data : duration. as_millis ( ) as isize ,
143+ udata : 0 as * mut libc :: c_void ,
150144 } ;
151145
152146 // add loop event
Original file line number Diff line number Diff line change 1- // Copyright 2021 Developers of Pyroscope.
2-
3- // Licensed under the Apache License, Version 2.0 <LICENSE or
4- // https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5- // except according to those terms.
6-
71/// A signal sent to the timer.
82///
93/// Either schedules another wake-up, or asks
Original file line number Diff line number Diff line change 1- // Copyright 2021 Developers of Pyroscope.
2-
3- // Licensed under the Apache License, Version 2.0 <LICENSE or
4- // https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5- // except according to those terms.
6-
71use super :: TimerSignal ;
82use crate :: utils:: get_time_range;
93use crate :: Result ;
You can’t perform that action at this time.
0 commit comments