| www.delorie.com/djgpp/doc/libc/libc_442.html | search |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <dpmi.h> int _go32_dpmi_lock_data( void *lockaddr, unsigned long locksize); |
Locks the given region of data, starting at lockaddr for locksize bytes. lockaddr is a regular pointer in your program, such as the address of a variable.
0 if success, -1 if failure.
| ANSI/ISO C | No |
| POSIX | No |
int semaphore=0;
void lock_my_handler()
{
_go32_dpmi_lock_data(&semaphore, 4);
}
|
| webmaster | delorie software privacy |
| Copyright © 2004 | Updated Apr 2004 |