File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ macro_rules! impl_hook {
23
23
std:: mem:: transmute( ptr)
24
24
} ) ;
25
25
let fn_ptr = once_cell:: sync:: Lazy :: force( & $field_name) ;
26
- if $crate:: hook( ) {
26
+ if $crate:: hook( )
27
+ || open_coroutine_core:: scheduler:: SchedulableCoroutine :: current( ) . is_some( )
28
+ || cfg!( feature = "ci" )
29
+ {
27
30
return open_coroutine_core:: syscall:: $syscall( Some ( fn_ptr) , $( $arg, ) * ) ;
28
31
}
29
32
( fn_ptr) ( $( $arg) ,* )
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ macro_rules! impl_hook {
36
36
open_coroutine_core:: common:: constants:: SyscallName :: $syscall
37
37
)
38
38
} ) ;
39
- if $crate:: hook( ) {
39
+ if $crate:: hook( )
40
+ || open_coroutine_core:: scheduler:: SchedulableCoroutine :: current( ) . is_some( )
41
+ || cfg!( feature = "ci" )
42
+ {
40
43
return open_coroutine_core:: syscall:: $syscall( Some ( fn_ptr) , $( $arg) ,* ) ;
41
44
}
42
45
( fn_ptr) ( $( $arg) ,* )
You can’t perform that action at this time.
0 commit comments