Main Page Class Hierarchy Compound List File List Compound Members File Members

# sema_mag.c File Reference

`#include <windows.h>`
`#include <stdlib.h>`
`#include <mw_functions.h>`

Go to the source code of this file.

## Functions
void | CreateMutex_ew (void)
void | RequestMutex (void)
void | ReleaseMutex_ew (void)
void | CloseMutex (void)
void | CreateSpecificMutex (HANDLE *mp)
void | RequestSpecificMutex (HANDLE *mp)
void | ReleaseSpecificMutex (HANDLE *mp)
void | CloseSpecificMutex (HANDLE *mp)
void | CreateSemaphore_ew (void)
void | PostSemaphore (void)
void | WaitSemPost (void)
void | DestroySemaphore (void)
## Variables
HANDLE | mutSem
HANDLE | semahandle

## Function Documentation

void CloseMutex | ( | void |  | ) |

| Definition at line 73 of file sema_mag.c.

void CloseSpecificMutex | ( | HANDLE * | mp | ) |

| Definition at line 120 of file sema_mag.c.

void CreateMutex_ew | ( | void |  | ) |

| Definition at line 37 of file sema_mag.c. References logit(), and mutSem.

void CreateSemaphore_ew | ( | void |  | ) |

| Definition at line 132 of file sema_mag.c. References logit(), and semahandle.

void CreateSpecificMutex | ( | HANDLE * | mp | ) |

| Definition at line 84 of file sema_mag.c. References logit().

void DestroySemaphore | ( | void |  | ) |

| Definition at line 177 of file sema_mag.c.

void PostSemaphore | ( | void |  | ) |

| Definition at line 153 of file sema_mag.c. References FALSE, and logit().

void ReleaseMutex_ew | ( | void |  | ) |

| Definition at line 61 of file sema_mag.c. References logit().

void ReleaseSpecificMutex | ( | HANDLE * | mp | ) |

| Definition at line 108 of file sema_mag.c. References logit().

void RequestMutex | ( | void |  | ) |

| Definition at line 50 of file sema_mag.c.

void RequestSpecificMutex | ( | HANDLE * | mp | ) |

| Definition at line 97 of file sema_mag.c.

void WaitSemPost | ( | void |  | ) |

| Definition at line 165 of file sema_mag.c. References logit().

## Variable Documentation

HANDLE mutSem

| Definition at line 27 of file sema_mag.c.

HANDLE semahandle

| Definition at line 28 of file sema_mag.c.