[SOLVED] CS #ifndef CONDVAR_H

$25

File Name: CS_#ifndef_CONDVAR_H.zip
File Size: 188.4 KB

5/5 - (1 vote)

#ifndef CONDVAR_H
#define CONDVAR_H

#include threads/semaphore.h
#include threads/lock.h

/* Condition variable */
struct condvar {
struct list waiters; /* List of semaphore_elems */
};

void condvar_init(struct condvar *);
void condvar_wait(struct condvar *, struct lock *);
void condvar_signal(struct condvar *, struct lock *);
void condvar_broadcast(struct condvar *, struct lock *);

#endif /* UCSC CSE130 */

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS #ifndef CONDVAR_H
$25