00001 /* 00002 * ============================================================================ 00003 * Name : pthreadtypes.h 00004 * Part of : PThread library 00005 * 00006 * Description: Exported thread data structures 00007 * 00008 * 00009 * Version: 00010 00011 Copyright © 2005-2006 Nokia Corporation 00012 All rights reserved. 00013 00014 Redistribution and use in source and binary forms, with or without 00015 modification, are permitted provided that the following conditions are met: 00016 * Redistributions of source code must retain the above copyright notice, this 00017 list of conditions and the following disclaimer. 00018 * Redistributions in binary form must reproduce the above copyright notice, 00019 this list of conditions and the following disclaimer in the documentation 00020 and/or other materials provided with the distribution. 00021 * Neither the name of the <ORGANIZATION> nor the names of its contributors 00022 may be used to endorse or promote products derived from this software 00023 without specific prior written permission. 00024 00025 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00026 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00027 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00028 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 00029 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00030 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00031 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00032 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00033 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00034 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00035 * ============================================================================ 00036 */ 00037 00038 #ifndef PTHREADTYPES_H 00039 #define PTHREADTYPES_H 00040 00041 #include <_ansi.h> 00042 // size of pthread_attr 00043 #define _TOTALSIZEOF_PTHREAD_ATTR_T 32 00044 00045 typedef unsigned int pthread_t; 00046 00047 typedef struct 00048 { 00049 char totalSize[_TOTALSIZEOF_PTHREAD_ATTR_T]; 00050 } pthread_attr_t; 00051 00052 /* Keys for thread-specific data */ 00053 typedef unsigned int pthread_key_t; 00054 00055 //PTHREADTYPES_H 00056 #endif