[SOLVED] CS代考计算机代写 #ifndef CONDVAR_H

30 $

File Name: CS代考计算机代写_#ifndef_CONDVAR_H.zip
File Size: 386.22 KB

SKU: 8276882459 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


#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
30 $