Ignore:
Timestamp:
Jul 18, 2017, 4:35:52 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
f19339e
Parents:
795d450
Message:

Convert more library files to use references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/monitor

    r795d450 r242a902  
    2424#include "stdlib"
    2525
    26 static inline void ?{}(monitor_desc * this) {
    27         this->owner = NULL;
    28         this->recursion = 0;
     26static inline void ?{}(monitor_desc & this) {
     27        this.owner = NULL;
     28        this.recursion = 0;
    2929}
    3030
     
    4040}
    4141
    42 void ?{}( monitor_guard_t * this, monitor_desc ** m, int count );
    43 void ^?{}( monitor_guard_t * this );
     42void ?{}( monitor_guard_t & this, monitor_desc ** m, int count );
     43void ^?{}( monitor_guard_t & this );
    4444
    4545//-----------------------------------------------------------------------------
     
    6666};
    6767
    68 void ?{}( __condition_blocked_queue_t * );
     68void ?{}( __condition_blocked_queue_t & );
    6969void append( __condition_blocked_queue_t *, __condition_node_t * );
    7070__condition_node_t * pop_head( __condition_blocked_queue_t * );
     
    7676};
    7777
    78 static inline void ?{}( condition * this ) {
    79         this->monitors = NULL;
    80         this->monitor_count = 0;
     78static inline void ?{}( condition & this ) {
     79        this.monitors = NULL;
     80        this.monitor_count = 0;
    8181}
    8282
    83 static inline void ^?{}( condition * this ) {
    84         free( this->monitors );
     83static inline void ^?{}( condition & this ) {
     84        free( this.monitors );
    8585}
    8686
Note: See TracChangeset for help on using the changeset viewer.