qemu/linux-user/signal.c
/* queue a signal so that it will be send to the virtual CPU as soon
   as possible */
queue a signal so that it will be send to the virtual CPU as soon
as possible
queue a signal so that it will be send to the virtual CPU as soon as possible
int queue_signal(CPUArchState *env, int sig, int si_type,
                 target_siginfo_t *info)
{
    CPUState *cpu = ENV_GET_CPU(env);
    TaskState *ts = cpu->opaque;
    trace_user_queue_signal(env, sig);
    info->si_code = deposit32(info->si_code, 16, 16, si_type);
    ts->sync_signal.info = *info;
    ts->sync_signal.pending = sig;
    atomic_set(&ts->signal_pending, 1);
    return 1; 
}
int queue_signal ( CPUArchState * env , int sig , int si_type , target_siginfo_t * info ) { CPUState * cpu = ENV_GET_CPU ( env ) ; TaskState * ts = cpu -> opaque ; trace_user_queue_signal ( env , sig ) ; info -> si_code = deposit32 ( info -> si_code , 16 , 16 , si_type ) ; ts -> sync_signal . info = * info ; ts -> sync_signal . pending = sig ; atomic_set ( & ts -> signal_pending , 1 ) ; return 1 ; }
queue a signal so that it will be send to the virtual CPU as soon
as possible
queue a signal so that it will be send to the virtual CPU as soon as possible
/* signal that a new signal is pending */ /* indicates that the signal was queued */