Skip to content

Commit a1a557f

Browse files
Jonathan KliemMatthias Koeppe
Jonathan Kliem
authored and
Matthias Koeppe
committed
a few comments
1 parent 4b690ab commit a1a557f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cysignals/implementation.c

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static void (*custom_set_pending_signal_pts[MAX_N_CUSTOM_HANDLERS])(int);
6464
static int n_custom_handlers = 0;
6565

6666
int custom_signal_is_blocked(){
67+
// Check if a custom block is set.
6768
for(int i = 0; i < n_custom_handlers; i++){
6869
if (custom_signal_is_blocked_pts[i]())
6970
return 1;
@@ -72,12 +73,14 @@ int custom_signal_is_blocked(){
7273
}
7374

7475
void custom_signal_unblock(){
76+
// Unset all custom blocks.
7577
for(int i = 0; i < n_custom_handlers; i++)
7678
custom_signal_unblock_pts[i]();
7779
}
7880

7981

8082
void custom_set_pending_signal(int sig){
83+
// Set a pending signal to custom handlers.
8184
for(int i = 0; i < n_custom_handlers; i++)
8285
custom_set_pending_signal_pts[i](sig);
8386
}

0 commit comments

Comments
 (0)