epoc32/include/stdapis/pthreadtypes.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name     : pthreadtypes.h
    16 * Part of  : PThread library
    17 * Exported thread data structures 
    18 * Version:
    19 * All rights reserved.
    20 * Redistribution and use in source and binary forms, with or without 
    21 * modification, are permitted provided that the following conditions are met:
    22 * Redistributions of source code must retain the above copyright notice, this 
    23 * list of conditions and the following disclaimer. 
    24 * Redistributions in binary form must reproduce the above copyright notice, 
    25 * this list of conditions and the following disclaimer in the documentation 
    26 * and/or other materials provided with the distribution. 
    27 * Neither the name of the <ORGANIZATION> nor the names of its contributors 
    28 * may be used to endorse or promote products derived from this software 
    29 * without specific prior written permission. 
    30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
    31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
    32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
    33 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
    34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
    35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
    36 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
    37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    38 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
    39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    40 *
    41 */
    42 
    43 
    44 
    45 #ifndef PTHREADTYPES_H
    46 #define PTHREADTYPES_H
    47 
    48 // size of pthread_attr
    49 #define _TOTALSIZEOF_PTHREAD_ATTR_T 32
    50 
    51 typedef unsigned int pthread_t;
    52 
    53 typedef struct
    54 {
    55   char totalSize[_TOTALSIZEOF_PTHREAD_ATTR_T];
    56 } pthread_attr_t;
    57 
    58 /* Keys for thread-specific data */
    59 typedef unsigned int pthread_key_t;
    60 
    61 #endif //PTHREADTYPES_H