connectivitylayer/isce/isirouter_dll/inc/isithreadcontainer.h
changeset 0 63b37f68c1ce
child 9 8486d82aef45
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectivitylayer/isce/isirouter_dll/inc/isithreadcontainer.h	Fri Nov 06 17:28:23 2009 +0000
@@ -0,0 +1,50 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+* 
+* Description: 
+*
+*/
+
+#ifndef __ISITHREADCONTAINER_H__
+#define __ISITHREADCONTAINER_H__
+
+#include "misichannelrouterif.h"  // For MISIChannelRouterIf
+
+const TUint8 KAmountOfKernelThreads( 5 );
+const TUint8 KAmountOfUserThreads( 5 );
+
+NONSHARABLE_CLASS( DISIThreadContainer ) : public DBase
+    {
+
+    public:
+    
+        DISIThreadContainer();
+        ~DISIThreadContainer();
+            
+        TDfcQue* AllocateThread( const MISIChannelRouterIf::TISIDfcQThreadType aType );
+        void DeallocateThread( TDfcQue* );
+        
+        TDfcQue* ReserveKernelThread();
+        TDfcQue* ReserveUserThread();
+        
+    private:
+        
+        // Owned
+        TDfcQue* iKClientDfcQueList[ KAmountOfKernelThreads ];
+        TDfcQue* iUClientDfcQueList[ KAmountOfUserThreads ];
+        TUint8   iKThreadOccupation[ KAmountOfKernelThreads ];
+        TUint8   iUThreadOccupation[ KAmountOfUserThreads ];
+        HBuf8*   iNameTable[ KAmountOfKernelThreads + KAmountOfUserThreads ];
+    };
+
+#endif /* __DISITHREADCONTAINER_H__ */