Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 15d9fe6 in mainline for kernel/generic/include/synch/mutex.h


Ignore:
Timestamp:
2017-10-28T11:26:43Z (4 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
c1f68b0
Parents:
7cf8522
Message:

Implement recursive mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/synch/mutex.h

    r7cf8522 r15d9fe6  
    4343typedef enum {
    4444        MUTEX_PASSIVE,
     45        MUTEX_RECURSIVE,
    4546        MUTEX_ACTIVE
    4647} mutex_type_t;
     48
     49struct thread;
    4750
    4851typedef struct {
    4952        mutex_type_t type;
    5053        semaphore_t sem;
     54        struct thread *owner;
     55        unsigned nesting;
    5156} mutex_t;
    5257
Note: See TracChangeset for help on using the changeset viewer.