Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/monitor

    r348006f rcb0e6de  
    2222#include "stdlib"
    2323
    24 struct monitor_desc {
    25         spinlock lock;
    26         thread_desc * owner;
    27         simple_thread_list entry_queue;
    28         unsigned int recursion;
    29 };
    30 
    3124static inline void ?{}(monitor_desc * this) {
    3225        this->owner = 0;
    3326        this->recursion = 0;
    3427}
    35 
    36 //Basic entering routine
    37 void enter(monitor_desc *);
    38 void leave(monitor_desc *);
    3928
    4029//Array entering routine
     
    4938static inline int ?<?(monitor_desc* lhs, monitor_desc* rhs) {
    5039        return ((intptr_t)lhs) < ((intptr_t)rhs);
    51 }
    52 
    53 static inline void ?{}( monitor_guard_t * this, monitor_desc ** m ) {
    54         this->m = m;
    55         this->count = 1;
    56         enter( *this->m );
    5740}
    5841
Note: See TracChangeset for help on using the changeset viewer.