Functions | Variables
thrtest.c File Reference
#include <thread.h>
#include <synch.h>
#include <math.h>
#include <sys/times.h>
#include <limits.h>
Include dependency graph for thrtest.c:

Go to the source code of this file.

Functions

 dofunc (int n)
 
 main (int argc, argv)
 
 semtest (int n)
 
float ustime (struct tms *t1, struct tms *t2)
 

Variables

int count =0
 
mutex_t count_lock
 
sema_t gosem
 
sema_t retsem
 
float sinx =0.0
 
mutex_t test_lock
 

Function Documentation

◆ dofunc()

dofunc ( int  n)

Definition at line 14 of file thrtest.c.

◆ main()

main ( int  argc,
argv   
)

Definition at line 43 of file thrtest.c.

◆ semtest()

semtest ( int  n)

Definition at line 29 of file thrtest.c.

◆ ustime()

float ustime ( struct tms *  t1,
struct tms *  t2 
)

Definition at line 38 of file thrtest.c.

Variable Documentation

◆ count

int count =0

Definition at line 11 of file thrtest.c.

◆ count_lock

mutex_t count_lock

Definition at line 8 of file thrtest.c.

◆ gosem

sema_t gosem

Definition at line 9 of file thrtest.c.

◆ retsem

sema_t retsem

Definition at line 9 of file thrtest.c.

◆ sinx

float sinx =0.0

Definition at line 12 of file thrtest.c.

◆ test_lock

mutex_t test_lock

Definition at line 7 of file thrtest.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43