Update contrib.
1 // Copyright (c) 2007-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\euser\us_data.h
15 // Defines accessor functions for thread local data, either using Exec calls or the thread ID
16 // register if available
25 #ifdef __USERSIDE_THREAD_DATA__
27 TLocalThreadData* LocalThreadData();
29 inline RAllocator* GetHeap()
31 return LocalThreadData()->iHeap;
34 inline CActiveScheduler* GetActiveScheduler()
36 return LocalThreadData()->iScheduler;
39 inline void SetActiveScheduler(CActiveScheduler* aS)
41 LocalThreadData()->iScheduler = aS;
44 inline TTrapHandler* GetTrapHandler()
46 return LocalThreadData()->iTrapHandler;
51 inline RAllocator* GetHeap()
56 inline CActiveScheduler* GetActiveScheduler()
58 return Exec::ActiveScheduler();
61 inline void SetActiveScheduler(CActiveScheduler* aS)
63 Exec::SetActiveScheduler(aS);
66 inline TTrapHandler* GetTrapHandler()
68 return Exec::TrapHandler();