thrdfunc.h

来自「sybase数据库ct library的开发,使用了所以有函数」· C头文件 代码 · 共 78 行

H
78
字号

/*
**	Sybase Open Client 
**	Confidential Property of Sybase, Inc.
**	(c) Copyright Sybase, Inc. 1991, 1996
**	All rights reserved
*/
/*
** thrdfunc.h
**
** Header file which contains the defines and prototypes for the utility
** functions in thrdfunc.c
**
*/

/* Sccsid %Z% %M% %I% %G% */



#ifndef	__THRDFUNC_H__
#define __THRDFUNC_H__

/* 
** prototypes for thread and synchronization routines 
*/
extern CS_RETCODE  ex_create_mutex  PROTOTYPE((
	CS_VOID **mutex
	));
extern CS_RETCODE  ex_take_mutex  PROTOTYPE((
	CS_VOID *mutex
	));
extern CS_RETCODE  ex_release_mutex  PROTOTYPE((
	CS_VOID *mutex
	));
extern CS_RETCODE  ex_delete_mutex  PROTOTYPE((
	CS_VOID *mutex
	));

extern CS_RETCODE  ex_create_sem PROTOTYPE((
	CS_VOID **semaphore,
	CS_UINT count
	));
extern CS_RETCODE  ex_release_sem PROTOTYPE((
	CS_VOID *semaphore
	));
extern CS_RETCODE  ex_waitfor_sem PROTOTYPE((
	CS_VOID *semaphore
	));
extern CS_RETCODE  ex_delete_sem PROTOTYPE((
	CS_VOID *semaphore
	));

extern CS_RETCODE  ex_create_thread PROTOTYPE((
        CS_VOID **thread,
        CS_VOID *startRoutine,
        CS_VOID *arg
        ));
extern CS_RETCODE  ex_detach_thread PROTOTYPE((
        CS_VOID *thread
	));
extern CS_VOID  ex_yield PROTOTYPE((
	));

extern CS_RETCODE  ex_create_global_mutex PROTOTYPE((
	CS_VOID
	));
extern CS_RETCODE  ex_delete_global_mutex PROTOTYPE((
	CS_VOID
	));
extern CS_RETCODE  ex_take_global_mutex PROTOTYPE((
	CS_VOID
	));
extern CS_RETCODE  ex_release_global_mutex PROTOTYPE((
	CS_VOID
	));

#endif /* __THRDFUNC_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?