graphicsdeviceinterface/directgdi/test/tmultithread.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent 
       
    19  @test
       
    20 */
       
    21 
       
    22 #ifndef TMULTITHREAD_H
       
    23 #define TMULTITHREAD_H
       
    24 
       
    25 #include "tdirectgdi_test_step_base.h"
       
    26 
       
    27 _LIT(KNameThreadOne, "CTMultiThread_ThreadOne");
       
    28 _LIT(KNameThreadTwo, "CTMultiThread_ThreadTwo");
       
    29 _LIT(KMultiThreadSemaphore, "CTMultiThread_Sempaphore");
       
    30 
       
    31 class CTMultiThread : public CTDirectGdiStepBase
       
    32 	{
       
    33 public:
       
    34 	CTMultiThread();
       
    35 	~CTMultiThread();
       
    36 	
       
    37 private:
       
    38 	void TestDirectGdiMultipleThreadIndependenceL();
       
    39 	static TInt ThreadOneStart(TAny* aInfo);
       
    40 	static TInt ThreadTwoStart(TAny* aInfo);
       
    41 	
       
    42 	void TestShareEGLImageBetweenSources_MultithreadedL();
       
    43 	static TInt ThreadEGLImageStart(TAny* aInfo);	
       
    44 	
       
    45 	// From CStepStep
       
    46 	virtual TVerdict doTestStepPreambleL();
       
    47 	virtual TVerdict doTestStepL();	
       
    48 	// from CTDirectGdiStepBase
       
    49 	void RunTestsL();
       
    50 	
       
    51 	RThread iThread1, iThread2;
       
    52 
       
    53 private:	
       
    54 	TInt iCaseNum;
       
    55 	};		
       
    56 	
       
    57 _LIT(KTMultiThreadStep,"TMultiThread");
       
    58 
       
    59 #endif /*TMULTITHREAD_H*/