www.delorie.com/djgpp/doc/libc-2.01/libc_373.html   search  
Go to the first, previous, next, last section, table of contents.


_go32_dpmi_lock_data

Syntax

#include <dpmi.h>

int _go32_dpmi_lock_data( void *lockaddr, unsigned long locksize);

Description

Locks the given region of code, starting at lockaddr for locksize bytes. lockaddr is a regular pointer in your program, such as the address of a variable.

Example


int semaphore=0;

void lock_my_handler()
{
  _go32_dpmi_lock_data(&semaphore, 4);
}


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997