Adaptation/GUID-6752A77F-B1D1-49BE-A672-5DDE3B7976BF.dita
changeset 15 307f4279f433
equal deleted inserted replaced
14:578be2adaf3e 15:307f4279f433
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <concept id="GUID-6752A77F-B1D1-49BE-A672-5DDE3B7976BF" xml:lang="en"><title>Other
       
    13 Synchronisation APIs</title><shortdesc>This document describes APIs other than the nanokernel which device
       
    14 drivers use for synchronisation.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    15 <p>The Kernel provides APIs to wait in blocked state, unblocked state, and
       
    16 nanokernel APIs to get the tick period, timer ticks, to sleep on nanothread,
       
    17 and so on. </p>
       
    18 <codeblock id="GUID-E70B072C-6CE9-572C-BF74-C7F4EE812CBF" xml:space="preserve">// Wait for a length of time specified in nanoseconds
       
    19 // This is a blocking call, and is not generally recommended
       
    20 // to be used. It should be used only for very short periods.
       
    21 //
       
    22 Kern::NanoWait(TUint32 aInterval);
       
    23  
       
    24 // This API polls at specified regular intervals, for a
       
    25 // specified number of attempts. A function implementing the polling
       
    26 // operation is called at these intervals. This does not block the 
       
    27 // thread. The poll period is in milliseconds.
       
    28 // 
       
    29 TInt Kern:: PollingWait(TPollFunction aFunction, TAny *aPtr, 
       
    30                 TInt aPollPeriodMs, TInt aMaxPoll);
       
    31 </codeblock>
       
    32 </conbody></concept>