#ifndef _DWC_THREAD_H
#define _DWC_THREAD_H

/*--------------------------------------------------------------------------
 *  Copyright (c) 2001-2004 Igor Daniloff. 
 *	All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at this directory.
 *------------------------------------------------------------------------*/
 
/* $Id: dwc_thread.h,v 1.15 2005/09/21 09:20:44 asv Exp $ */

#if defined(__THREAD_BASED_DW)

#ifdef __UNIX_DW
#include <sys/types.h>
#include <pthread.h>
#endif /* __UNIX_DW */
#ifdef __WIN32_DW
#include <windows.h>
#endif /* __WIN32_DW */
#include "dwc_type.h"

#ifdef  __cplusplus
extern "C" {
#endif

typedef void*                      DWC_thread_arg_t;
typedef void                     (*DWC_thread_func_t)(DWC_thread_arg_t);

DWC_error_code_t     dwc_thread_create( DWC_thread_func_t, DWC_thread_arg_t );

#ifdef  __cplusplus
}
#endif

#endif /* __THREAD_BASED_DW */

#endif /* _DWC_THREAD_H */

