comparison src/parallel_execution/SemaphoreImpl.cbc @ 462:8d7e5d48cad3

Running CPU examples
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Wed, 20 Dec 2017 22:05:08 +0900
parents b07078bd1f2c
children ac244346c85d
comparison
equal deleted inserted replaced
461:6b71cf5b1c22 462:8d7e5d48cad3
1 #include "../context.h" 1 #include "../context.h"
2 #include "semaphore.h"
2 3
3 Semaphore* createSemaphoreImpl(struct Context* context, int n) { 4 Semaphore* createSemaphoreImpl(struct Context* context, int n) {
4 struct Semaphore* semaphore = new Semaphore(); 5 struct Semaphore* semaphore = new Semaphore();
5 struct SemaphoreImpl* semaphoreImpl = new SemaphoreImpl(); 6 struct SemaphoreImpl* semaphoreImpl = new SemaphoreImpl();
6 semaphore->semaphore = (union Data*)semaphoreImpl; 7 semaphore->semaphore = (union Data*)semaphoreImpl;