Motr  M0
mutex.c File Reference
#include "ut/ut.h"
#include "lib/thread.h"
#include "lib/mutex.h"
#include "lib/assert.h"
Include dependency graph for mutex.c:

Go to the source code of this file.

Enumerations

enum  { NR = 255 }
 

Functions

static void t0 (int n)
 
static void t1 (int n)
 
static void static_mutex_test (void)
 
void test_mutex (void)
 

Variables

static int counter
 
static struct m0_thread t [NR]
 
static struct m0_mutex m [NR]
 
static struct m0_mutex static_m = M0_MUTEX_SINIT(&static_m)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NR 

Definition at line 28 of file mutex.c.

Function Documentation

◆ static_mutex_test()

static void static_mutex_test ( void  )
static

Definition at line 62 of file mutex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ t0()

static void t0 ( int  n)
static

Definition at line 37 of file mutex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ t1()

static void t1 ( int  n)
static

Definition at line 48 of file mutex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_mutex()

void test_mutex ( void  )

Definition at line 68 of file mutex.c.

Here is the call graph for this function:

Variable Documentation

◆ counter

int counter
static

Definition at line 32 of file mutex.c.

◆ m

struct m0_mutex m[NR]
static

Definition at line 34 of file mutex.c.

◆ static_m

struct m0_mutex static_m = M0_MUTEX_SINIT(&static_m)
static

Definition at line 35 of file mutex.c.

◆ t

struct m0_thread t[NR]
static

Definition at line 33 of file mutex.c.