Ignore:
Timestamp:
Mar 23, 2017, 11:37:27 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
bd4d011
Parents:
578b637
Message:

Fixed autogen constructors for concurrent sues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/monitor.c

    r578b637 rbcda04c  
    44#include <thread>
    55
    6 struct global_t {
     6monitor global_t {
    77        int value;
    8         monitor_desc m;
    98};
    109
    1110void ?{}(global_t * this) {
    1211        this->value = 0;
    13 }
    14 
    15 monitor_desc * get_monitor( global_t * this ) {
    16         return &this->m;
    1712}
    1813
     
    4540
    4641int main(int argc, char* argv[]) {
    47         assert( global.m.entry_queue.tail != NULL );
     42        assert( global.__mon.entry_queue.tail != NULL );
    4843        processor p;
    4944        {
Note: See TracChangeset for help on using the changeset viewer.