Changeset c8afd5a in mainline


Ignore:
Timestamp:
2018-05-31T16:22:15Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04051b8e
Parents:
49a796f1
Message:

Have async_poke() check whether the poke is necessary.

This was originally done in fibril_synch.c and the previous commit accidentally
removed it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async/server.c

    r49a796f1 rc8afd5a  
    125125
    126126/** Number of threads waiting for IPC in the kernel. */
    127 atomic_t threads_in_ipc_wait = { 0 };
     127static atomic_t threads_in_ipc_wait = { 0 };
    128128
    129129/** Call data */
     
    12731273void async_poke(void)
    12741274{
    1275         ipc_poke();
     1275        if (atomic_get(&threads_in_ipc_wait) > 0)
     1276                ipc_poke();
    12761277}
    12771278
Note: See TracChangeset for help on using the changeset viewer.