File:  [WindowsNT SDKs] / q_a / samples / bndbuf / common.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:29:42 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

#define MAX_ITEM 10
#define MAX_SIZE 20

#define SUCCESS 1
#define FAILURE 0


#define MAXCALLS    20


// Synchronization primitives to shared buffer

HANDLE hMutex;		// Handle to mutex
HANDLE hEmptySem;	// Handle to empty semaphore
HANDLE hFullSem;		// Handle to full semaphore


// This is the shared buffer

char buffer[MAX_ITEM][MAX_SIZE];


// The current producer and consumer position in the buffer pool

int pro_buf_pos;
int con_buf_pos;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.