Changeset e15df4c for src/examples


Ignore:
Timestamp:
Jan 24, 2017, 4:50:45 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
ad56482
Parents:
2cdf6dc
Message:

Renamed thread to scoped and thread_h to thread

Location:
src/examples
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/thread.c

    r2cdf6dc re15df4c  
    1 #line 1 "thread.c"
    21#include <fstream>
    32#include <kernel>
     
    76// Start coroutine routines
    87struct MyThread {
    9         thread_h t;
     8        thread t;
    109        unsigned id;
    1110        unsigned count;
     
    4645                processor p;
    4746                {
    48                         thread(MyThread) thread1 = { 1u, itterations };
    49                         thread(MyThread) thread2 = { 2u, itterations };
     47                        scoped(MyThread) thread1 = { 1u, itterations };
     48                        scoped(MyThread) thread2 = { 2u, itterations };
    5049                }
    5150        }
Note: See TracChangeset for help on using the changeset viewer.