ReactOS 0.4.16-dev-329-g9223134
locker.c File Reference
#include <headers.h>
#include <datatypes.h>
#include <options.h>
#include <leases.h>
#include <lock.h>
Include dependency graph for locker.c:

Go to the source code of this file.

Functions

int check_leased_list ()
 
static int test_and_set ()
 
int lock_list ()
 
int unlock_list ()
 

Function Documentation

◆ check_leased_list()

int check_leased_list ( )

Definition at line 7 of file locker.c.

8{
9 DHCPLIST *temp, *ntemp;
10 int count = 1, i;
11
12 /* fprintf( stdout, "checking list! \n" ); */
13
14 return 0;
15}
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static calc_node_t temp
Definition: rpn_ieee.c:38

◆ lock_list()

int lock_list ( )

Definition at line 24 of file locker.c.

25{
26 int count = 1;
27
28 while( !test_and_set() )
29 {
30 sleep( 1 );
31 count++;
32 }
33
34 return count;
35}
#define sleep
Definition: syshdrs.h:37
static int test_and_set()
Definition: locker.c:17

◆ test_and_set()

static int test_and_set ( )
static

Definition at line 17 of file locker.c.

18{
19 /* Test lock, if it's locked return FALSE */
20
21 return TRUE;
22}
#define TRUE
Definition: types.h:120

Referenced by lock_list().

◆ unlock_list()

int unlock_list ( )

Definition at line 37 of file locker.c.

38{
39 return TRUE;
40}