File:  [OS/2 SDKs] / os2sdk / demos / examples / queues / defines.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:25:13 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1988, os2sdk-1987, HEAD
Microsoft OS/2 SDK 12-15-1987

/* defines used by server.c and customer.c:
 */

#define QUEUENAME       "\\QUEUES\\SOMEQUE"     /* name of queue             */
#define SEGNAME         "\\SHAREMEM\\SOMESEG"   /* segment to hold queue data*/
#define SEGSIZE         32                      /* size of shared segment    */
#define FIFO            0                       /* FIFO priority ordering    */
#define LIFO            1                       /* LIFO priority ordering    */
#define PRIO            2                       /* Priority Queue Ordereing  */
#define DUMMYPARAM      (long) 0        /* dummy parameter to DOSQUEUEREAD   */
#define MAXQWRITES      8   /* max (arbitrary) number of writes to queue     */
#define ELEMPRIORITY    0   /* all the elements will have equal priority     */
#define LIFOPRIO        15  /* LIFO stacking of elements on queue            */
#define REQWAITER       0   /* request attn. of a waiter, same for all req's */
#define NOMORE          1   /* indicate no more requests */
#define DATALENGTH      2   /* length of data element to be placed in queue  */
#define FIRSTELEMENT    0   /* read the first element in the queue */
#define WAIT            0   /* will wait until an element becomes available  */

unix.superglobalmegacorp.com

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