Changeset 102f641 in mainline for uspace/srv/taskman/event.c


Ignore:
Timestamp:
2019-09-02T19:01:50Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
25697163
Parents:
241f1985
Message:

Correcting syntax according to ccheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskman/event.c

    r241f1985 r102f641  
    167167                                async_answer_1(pr->icall, EINTR, t->exit);
    168168                        } else {
    169                                 /* Send both exit status and retval, caller
    170                                  * should know what is valid */
     169                                /*
     170                                 * Send both exit status and retval, caller
     171                                 * should know what is valid
     172                                 */
    171173                                async_answer_3(pr->icall, EOK, t->exit,
    172174                                    t->retval, rest);
     
    180182                }
    181183
    182                
    183184                list_remove(&pr->link);
    184185                free(pr);
     
    233234
    234235void wait_for_task(task_id_t id, int flags, ipc_call_t *icall,
    235      task_id_t waiter_id)
     236    task_id_t waiter_id)
    236237{
    237238        assert(!(flags & TASK_WAIT_BOTH) ||
     
    247248                return;
    248249        }
    249        
     250
    250251        if (t->exit != TASK_EXIT_RUNNING) {
    251252                //TODO are flags BOTH processed correctly here?
     
    253254                return;
    254255        }
    255        
     256
    256257        /*
    257258         * Add request to pending list or reuse existing item for a second
     
    274275                        goto finish;
    275276                }
    276        
     277
    277278                link_initialize(&pr->link);
    278279                pr->id = id;
     
    305306}
    306307
    307 
    308308errno_t task_set_retval(task_id_t sender, int retval, bool wait_for_exit)
    309309{
    310310        errno_t rc = EOK;
    311        
     311
    312312        fibril_rwlock_write_lock(&task_hash_table_lock);
    313313        task_t *t = task_get_by_id(sender);
     
    317317                goto finish;
    318318        }
    319        
     319
    320320        t->retval = retval;
    321321        t->retval_type = wait_for_exit ? RVAL_SET_EXIT : RVAL_SET;
    322        
     322
    323323        event_notify_all(t);
    324324        process_pending_wait();
    325        
     325
    326326finish:
    327327        fibril_rwlock_write_unlock(&task_hash_table_lock);
Note: See TracChangeset for help on using the changeset viewer.