Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/monitor

    rbf7b9da7 r6b0b624  
    2222#include "stdlib"
    2323
    24 static inline void ?{}(monitor_desc & this) {
    25         (this.lock){};
    26         this.owner = NULL;
    27         (this.entry_queue){};
    28         (this.signal_stack){};
    29         this.recursion = 0;
    30         this.acceptables = NULL;
    31         this.acceptable_count = 0;
    32         this.accepted_index = -1;
     24static inline void ?{}(monitor_desc * this) {
     25        this->owner = NULL;
     26        this->recursion = 0;
    3327}
    3428
     
    3832        monitor_desc ** prev_mntrs;
    3933        unsigned short  prev_count;
    40         fptr_t          prev_func;
    4134};
    4235
     
    4538}
    4639
    47 void ?{}( monitor_guard_t & this, monitor_desc ** m, int count, void (*func)() );
    48 void ^?{}( monitor_guard_t & this );
     40void ?{}( monitor_guard_t * this, monitor_desc ** m, int count );
     41void ^?{}( monitor_guard_t * this );
    4942
    5043//-----------------------------------------------------------------------------
     
    7164};
    7265
    73 void ?{}( __condition_blocked_queue_t & );
     66void ?{}( __condition_blocked_queue_t * );
    7467void append( __condition_blocked_queue_t *, __condition_node_t * );
    7568__condition_node_t * pop_head( __condition_blocked_queue_t * );
     
    8174};
    8275
    83 static inline void ?{}( condition & this ) {
    84         this.monitors = NULL;
    85         this.monitor_count = 0;
     76static inline void ?{}( condition * this ) {
     77        this->monitors = NULL;
     78        this->monitor_count = 0;
    8679}
    8780
    88 static inline void ^?{}( condition & this ) {
    89         free( this.monitors );
     81static inline void ^?{}( condition * this ) {
     82        free( this->monitors );
    9083}
    9184
     
    9689uintptr_t front( condition * this );
    9790
    98 //-----------------------------------------------------------------------------
    99 // External scheduling
    100 
    10191struct __acceptable_t {
    102         fptr_t func;
     92        void (*func)(void);
    10393        unsigned short count;
    104         monitor_desc ** monitors;
     94        monitor_desc * monitors[1];
    10595};
    10696
    107 int __accept_internal( unsigned short count, __acceptable_t * acceptables );
     97void __accept_internal( unsigned short count, __acceptable_t * acceptables, void (*func)(void) );
    10898
    10999// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.