Kernel: Allow adding signals to thread that are blocked

This commit is contained in:
2025-08-20 18:35:18 +03:00
parent 84f579be81
commit 49122cf729
3 changed files with 11 additions and 14 deletions

View File

@@ -59,7 +59,7 @@ namespace Kernel
bool will_execute_signal() const;
// Returns true if handled signal had SA_RESTART
bool handle_signal(int signal = 0);
bool add_signal(int signal);
void add_signal(int signal);
// blocks current thread and returns either on unblock, eintr, spuriously or after timeout
// if mutex is not nullptr, it will be atomically freed before blocking and automatically locked on wake