PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Fields
lock Struct Reference

Lock. More...

#include <synch.h>

Collaboration diagram for lock:
Collaboration graph
[legend]

Data Fields

struct threadholder
 Thread holding lock (for debugging). More...
 
struct semaphore semaphore
 Binary semaphore controlling access. More...
 

Detailed Description

Lock.

Definition at line 21 of file synch.h.

Field Documentation

◆ holder

struct thread* lock::holder

Thread holding lock (for debugging).

Definition at line 23 of file synch.h.

Referenced by lock_acquire(), lock_held_by_current_thread(), lock_init(), lock_release(), and lock_try_acquire().

◆ semaphore

struct semaphore lock::semaphore

Binary semaphore controlling access.

Definition at line 24 of file synch.h.

Referenced by lock_acquire(), lock_init(), lock_release(), and lock_try_acquire().


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