Changeset 751d963


Ignore:
Timestamp:
Oct 7, 2017, 6:07:28 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
d6655bd
Parents:
b8a17e2
Message:

add delete for mutex types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/monitor

    rb8a17e2 r751d963  
    1010// Created On       : Thd Feb 23 12:27:26 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 22 09:59:01 2017
    13 // Update Count     : 3
     12// Last Modified On : Sat Oct  7 18:06:45 2017
     13// Update Count     : 10
    1414//
    1515
     
    5454void ^?{}( monitor_guard_t & this );
    5555
    56 
    5756struct monitor_dtor_guard_t {
    5857        monitor_desc * m;
     
    6463void ?{}( monitor_dtor_guard_t & this, monitor_desc ** m, void (*func)() );
    6564void ^?{}( monitor_dtor_guard_t & this );
     65
     66static inline forall( dtype T | sized(T) | { void ^?{}( T & mutex ); } )
     67void delete( T * th ) {
     68        ^(*th){};
     69        free( th );
     70}
    6671
    6772//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.