Changeset 08a19ba in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2008-06-23T18:44:48Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a1744e
Parents:
deaf8d5
Message:

Support for active mutexes. Active mutexes implement busy waiting, pretty much
in the same way as spinlocks, but can be passed to condition variables, which is
the motivation for this enhancement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    rdeaf8d5 r08a19ba  
    162162void ipc_phone_init(phone_t *phone)
    163163{
    164         mutex_initialize(&phone->lock);
     164        mutex_initialize(&phone->lock, MUTEX_PASSIVE);
    165165        phone->callee = NULL;
    166166        phone->state = IPC_PHONE_FREE;
Note: See TracChangeset for help on using the changeset viewer.