repositories
/
TD_SE.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Properly init the semaphore in the readers/writers code.
[TD_SE.git]
/
prodcons
/
prodcons.c
diff --git
a/prodcons/prodcons.c
b/prodcons/prodcons.c
index a533b48ad247254baf5eeb296dc55c1f5f3564de..2ff3868e109f8044308d7e8ae2b998ef7b999e75 100644
(file)
--- a/
prodcons/prodcons.c
+++ b/
prodcons/prodcons.c
@@
-11,6
+11,7
@@
typedef struct args {
sem_t sem_busy;
} args_t;
static int buf[BUF_SIZE];
sem_t sem_busy;
} args_t;
static int buf[BUF_SIZE];
+
void *prod(void *arg);
void *cons(void *arg);
void *prod(void *arg);
void *cons(void *arg);