/* * @OSF_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * ALL RIGHTS RESERVED (DCE). See the file named COPYRIGHT.DCE in the * src directory for the full copyright text. */ /* * HISTORY * $Log: cma_sequence.h,v $ * Revision 1.1.2.2 1992/12/15 22:30:30 alan * Insert copyright notices * [1992/12/07 19:41:13 alan] * * Revision 1.1 1992/01/19 14:39:25 devrcs * Initial revision * * $EndLog$ */ /* */ /* * Copyright (c) 1989, 1991 by * Digital Equipment Corporation, Maynard Massachusetts. * All rights reserved. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by DIGITAL Equipment * Corporation. * * DIGITAL assumes no responsibility for the use or reliability of its * software on equipment which is not supplied by DIGITAL. */ /* * FACILITY: * * Concert Multithread Architecture (CMA) services * * ABSTRACT: * * Header file for sequence generator functions * * AUTHORS: * * Dave Butenhof * * CREATION DATE: * * 24 July 1989 * * MODIFICATION HISTORY: * * 001 Dave Butenhof 25 August 1989 * Add initialization code for convenience. * 002 Dave Butenhof 11 October 1989 * Convert to use internal mutex operations. * 003 Dave Butenhof 1 November 1989 * Remove circular header dependency with mutex. * 004 Dave Butenhof and Webb Scales 05 June 1991 * Conditionalize vacuous (forward) structure defs, since MIPS C * V2.1 doesn't like (or, apparently, need). */ #ifndef CMA_SEQUENCE #define CMA_SEQUENCE /* * INCLUDE FILES */ /* * CONSTANTS AND MACROS */ /* * TYPEDEFS */ #ifndef __STDC__ struct CMA__T_INT_MUTEX; #endif typedef struct CMA__T_SEQUENCE { struct CMA__T_INT_MUTEX *mutex; /* Serialize access to counter */ cma_t_natural seq; /* Sequence number for object */ } cma__t_sequence; /* * GLOBAL DATA */ /* * INTERNAL INTERFACES */ extern cma_t_natural cma__assign_sequence _CMA_PROTOTYPE_ (( cma__t_sequence *control)); /* Sequence control block */ extern void cma__init_sequence _CMA_PROTOTYPE_ (( cma__t_sequence *control)); /* Sequence control block */ #endif /* DEC/CMS REPLACEMENT HISTORY, Element CMA_SEQUENCE.H */ /* *5 10-JUN-1991 19:56:01 SCALES "Convert to stream format for ULTRIX build" */ /* *4 10-JUN-1991 19:21:34 BUTENHOF "Fix the sccs headers" */ /* *3 10-JUN-1991 18:23:27 SCALES "Add sccs headers for Ultrix" */ /* *2 5-JUN-1991 17:31:33 BUTENHOF "Conditionalize vacuous defs" */ /* *1 12-DEC-1990 21:52:41 BUTENHOF "Atomic sequence numbers" */ /* DEC/CMS REPLACEMENT HISTORY, Element CMA_SEQUENCE.H */