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_cond_init.cpp |
|
15 // Part of : pthread |
|
16 // Interface : POSIX, pthread |
|
17 // POSIX implementation of pthread on Symbian |
|
18 // Version : |
|
19 // |
|
20 |
|
21 |
|
22 |
|
23 #include "condvartypes.h" |
|
24 |
|
25 EXPORT_C int pthread_cond_init(pthread_cond_t *cond, |
|
26 const pthread_condattr_t * /*cond_attr*/) |
|
27 { |
|
28 if(!cond) |
|
29 { |
|
30 return EINVAL; |
|
31 } |
|
32 _QueueInit(&cond->iQueue); |
|
33 cond->iState = _EInitialized; |
|
34 return 0; |
|
35 } |
|
36 |
|
37 |
|
38 //End of File |
|
39 |