comparison TaskManager/kernel/ppe/Sem.h @ 1877:f73ca57cdc81 draft

add ppe wait semaphore to avoid ppe busy wait
author Kohagura
date Tue, 31 Dec 2013 19:33:26 +0900
parents 4c209dd223cd
children
comparison
equal deleted inserted replaced
1875:2f04c761bf9f 1877:f73ca57cdc81
14 /* constructor */ 14 /* constructor */
15 Sem(int value); 15 Sem(int value);
16 ~Sem(); 16 ~Sem();
17 void sem_p(); 17 void sem_p();
18 void sem_v(); 18 void sem_v();
19 void sem_v1();
19 int count(); 20 int count();
20 /* variables */ 21 /* variables */
21 private: 22 private:
22 sem_t *sem; 23 sem_t *sem;
23 }; 24 };