symport/symuser/symuser.cpp
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 1995-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 "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // main.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <stdlib.h>
       
    19 #include <time.h>
       
    20 
       
    21 #include "e32base.h"
       
    22 #include "us_data.h"
       
    23 #include "e32const.h"
       
    24 
       
    25 // Globals
       
    26 TLocalThreadData gThreadData;
       
    27 int gArgc = 0;
       
    28 char **gArgv = NULL;
       
    29 
       
    30 // ***
       
    31 // LocalThreadData
       
    32 //
       
    33 TLocalThreadData* LocalThreadData()
       
    34 	{
       
    35 	return &gThreadData;
       
    36 	}
       
    37 
       
    38 // ***
       
    39 // ForceKeyFunction
       
    40 // This is the key function that forces the class impedimenta to be get exported
       
    41 //
       
    42 #if (defined(__TOOLS2__) && defined(__linux__))
       
    43 EXPORT_C void XLeaveException::ForceKeyFunction()
       
    44 	{
       
    45 	}
       
    46 #endif
       
    47 
       
    48 // ***
       
    49 // main
       
    50 //
       
    51 EXPORT_C void SymInit(int argc, char *argv[])
       
    52 	{
       
    53 	gArgc = argc;
       
    54 	gArgv = argv;
       
    55 	srand(time(NULL));
       
    56 	}
       
    57 
       
    58 const TInt KIrrelevantInt = 1;
       
    59 
       
    60 EXPORT_C TThreadId RThread::Id() const{ return KIrrelevantInt;}
       
    61 
       
    62 EXPORT_C void RThread::SetPriority(TThreadPriority aPriority) const{}
       
    63 
       
    64 EXPORT_C TThreadPriority RThread::Priority() const{ return EPriorityNormal; }
       
    65 
       
    66 //end of file
       
    67