os/ossrv/genericopenlibs/openenvcore/libc/src/usleep.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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        : usleep.cpp
    15 // Part of     : libc library
    16 // suspends for the specified number of miroseconds.
    17 // This material, including documentation and any related 
    18 // computer programs, is protected by copyright controlled by 
    19 // Nokia. All rights are reserved. Copying, including 
    20 // reproducing, storing, adapting or translating, any 
    21 // or all of this material requires the prior written consent of 
    22 // Nokia. This material also contains confidential 
    23 // information which may not be disclosed to others without the 
    24 // prior written consent of Nokia.
    25 //
    26 
    27 
    28 
    29 #include <e32std.h>
    30 
    31 extern "C" {
    32 
    33 EXPORT_C int usleep (unsigned int microsecs)
    34 	{
    35 	// we don't allow the possibility of being woken by signals
    36   	User::AfterHighRes(microsecs);
    37 	return 0;
    38 	}
    39 
    40 } // extern "C"