Mercurial > hg > Members > Moririn
comparison src/parallel_execution/SemaphoreImpl.cbc @ 468:ac244346c85d
Change used interface syntax from #include to #interface
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 Dec 2017 18:10:56 +0900 (2017-12-25) |
parents | 8d7e5d48cad3 |
children |
comparison
equal
deleted
inserted
replaced
467:4ec61e201c19 | 468:ac244346c85d |
---|---|
1 #include "../context.h" | 1 #include "../context.h" |
2 #include "semaphore.h" | 2 #interface "semaphore.h" |
3 | 3 |
4 Semaphore* createSemaphoreImpl(struct Context* context, int n) { | 4 Semaphore* createSemaphoreImpl(struct Context* context, int n) { |
5 struct Semaphore* semaphore = new Semaphore(); | 5 struct Semaphore* semaphore = new Semaphore(); |
6 struct SemaphoreImpl* semaphoreImpl = new SemaphoreImpl(); | 6 struct SemaphoreImpl* semaphoreImpl = new SemaphoreImpl(); |
7 semaphore->semaphore = (union Data*)semaphoreImpl; | 7 semaphore->semaphore = (union Data*)semaphoreImpl; |