source: src/libcfa/concurrency/threads@ 0e76cf4f

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 0e76cf4f was 0e76cf4f, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

Updated the makefile for concurrency

  • Property mode set to 100644
File size: 703 bytes
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// fstream --
8//
9// Author : Peter A. Buhr
10// Created On : Wed May 27 17:56:53 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Thu Apr 28 08:08:04 2016
13// Update Count : 88
14//
15
16#ifndef __THREADS_H__
17#define __THREADS_H__
18
19
20struct coroutine {
21 int blarg;
22};
23
24trait coroutine_t(dtype T) {
25 coroutine* this_coroutine(T* this);
26};
27
28forall(dtype T | coroutine_t(T))
29void suspend(T* cor);
30
31forall(dtype T | coroutine_t(T))
32void resume(T* cor);
33
34#endif //__THREADS_H__
Note: See TracBrowser for help on using the repository browser.