equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Name : pthread_mutexattr_gettype.cpp |
|
15 // Part of : pthread |
|
16 // Interface : POSIX, pthread |
|
17 // POSIX implementation of mutexes on Symbian |
|
18 // Version : |
|
19 // |
|
20 |
|
21 |
|
22 |
|
23 #include "mutextypes.h" |
|
24 |
|
25 |
|
26 EXPORT_C int pthread_mutexattr_gettype (pthread_mutexattr_t * attr, int *type) |
|
27 { |
|
28 if(!VALID_MUTEX_ATTR(attr) || !type) |
|
29 { |
|
30 return EINVAL; |
|
31 } |
|
32 |
|
33 *type = attr->iMutexType; |
|
34 return 0; |
|
35 } |
|
36 |
|
37 |
|
38 // End of File |
|
39 |