1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kernel/eka/include/nkernsmp/emievents.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,92 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32/include/nkernsmp/emievents.h
1.18 +//
1.19 +// WARNING: This file contains some APIs which are internal and are subject
1.20 +// to change without notice. Such APIs should therefore not be used
1.21 +// outside the Kernel and Hardware Services package.
1.22 +//
1.23 +
1.24 +#ifndef __EMIEVENTS_H__
1.25 +#define __EMIEVENTS_H__
1.26 +
1.27 +/**
1.28 +@publishedPartner
1.29 +@released
1.30 +
1.31 +Defines the format of a task event record.
1.32 +
1.33 +An item of this type is passed to:
1.34 +
1.35 +-# EMI::GetTaskEvent()
1.36 +-# EMI::AddTaskEvent()
1.37 +*/
1.38 +struct TTaskEventRecord
1.39 + {
1.40 + /**
1.41 + Defines the type of event:
1.42 +
1.43 + 0 = Reschedule
1.44 + 1..127 = Reserved
1.45 + > 127 = User Defined
1.46 + */
1.47 + TUint8 iType;
1.48 +
1.49 +
1.50 + /**
1.51 + Flag bits.
1.52 +
1.53 + Bit 0 - Events have been lost before this event. (All types)
1.54 + Bit 1 - Previous thread is now waiting. (Reschedule only)
1.55 + */
1.56 + TUint8 iFlags;
1.57 +
1.58 +
1.59 + /**
1.60 + This has no use in reschedule events, but may be used by other event types.
1.61 + */
1.62 + TUint16 iExtra;
1.63 +
1.64 +
1.65 + /**
1.66 + The state variable at the time of the event, which will
1.67 + probably indicate the clock frequency at the time of the event.
1.68 + */
1.69 + TUint32 iUserState;
1.70 +
1.71 +
1.72 + /**
1.73 + The time that the event occurred.
1.74 +
1.75 + The units are defined by the GET_HIGH_RES_TICK macro.
1.76 + */
1.77 + TUint32 iTime;
1.78 +
1.79 +
1.80 + /**
1.81 + The NThread that was executing before the switch.
1.82 + */
1.83 + TAny* iPrevious;
1.84 +
1.85 +
1.86 + /**
1.87 + The NThread that was executing after the switch.
1.88 + */
1.89 + TAny* iNext;
1.90 + };
1.91 +
1.92 +const TUint8 KTskEvtFlag_EventLost =1;
1.93 +const TUint8 KTskEvtFlag_PrevWaiting=2;
1.94 +
1.95 +#endif