CS350 COS
COS
Loading...
Searching...
No Matches
Semaphore Struct Reference

#include <semaphore.h>

Collaboration diagram for Semaphore:
[legend]

Public Member Functions

 TAILQ_HEAD (SemaThreadQueue, Thread) waiters
 
 LIST_ENTRY (Semaphore) semaphoreList
 

Data Fields

Spinlock lock
 
char name [SEMAPHORE_NAMELEN]
 
int count
 

Detailed Description

Definition at line 12 of file semaphore.h.

Member Function Documentation

◆ LIST_ENTRY()

Semaphore::LIST_ENTRY ( Semaphore  )

◆ TAILQ_HEAD()

Semaphore::TAILQ_HEAD ( SemaThreadQueue  ,
Thread   
)

Field Documentation

◆ count

int Semaphore::count

Definition at line 16 of file semaphore.h.

◆ lock

Spinlock Semaphore::lock

Definition at line 14 of file semaphore.h.

◆ name

char Semaphore::name[SEMAPHORE_NAMELEN]

Definition at line 15 of file semaphore.h.


The documentation for this struct was generated from the following file: