]> Git Repo - qemu.git/commitdiff
bsd-user: Bring in docs from linux-user for signal_pending
authorWarner Losh <[email protected]>
Sun, 16 Jan 2022 23:33:21 +0000 (16:33 -0700)
committerWarner Losh <[email protected]>
Fri, 28 Jan 2022 22:52:38 +0000 (15:52 -0700)
This is currently unused, so no code adjustments are needed.

Signed-off-by: Warner Losh <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
bsd-user/qemu.h

index 4dd209e402daf29164eabf1779e0d02130295a1e..671b26f00cc55401d15c57027eceacaac08fac41 100644 (file)
@@ -86,7 +86,14 @@ typedef struct TaskState {
     struct image_info *info;
 
     struct emulated_sigtable sigtab[TARGET_NSIG];
-    int signal_pending; /* non zero if a signal may be pending */
+    /*
+     * Nonzero if process_pending_signals() needs to do something (either
+     * handle a pending signal or unblock signals).
+     * This flag is written from a signal handler so should be accessed via
+     * the qatomic_read() and qatomic_set() functions. (It is not accessed
+     * from multiple threads.)
+     */
+    int signal_pending;
 
     uint8_t stack[];
 } __attribute__((aligned(16))) TaskState;
This page took 0.022089 seconds and 4 git commands to generate.