×
Namespaces

Variants
Actions
Revision as of 15:26, 17 June 2008 by ebra (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WISE Thread Interface

From Nokia Developer Wiki
Jump to: navigation, search

Contents

Description

Maemo Platform

 

S60 Platform

TInt ThreadEntry(TAny* aPtr)
{
CTrapCleanup* cleanupStack = CTrapCleanup::New();
if ( cleanupStack )
{
TRAPD( err,
CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;
CleanupStack::PushL( scheduler );
CActiveScheduler::Install( scheduler );
 
CWISEEngine* eng = CWISEEngine::NewLC(*((CWISELogger*)aPtr));
 
CPeriodic* periodic = CPeriodic::NewL(CActive::EPriorityLow);
CleanupStack::PushL(periodic);
periodic->Start(1000, 1000000, TCallBack(ThreadFunction, eng));
 
CActiveScheduler::Start();
CleanupStack::PopAndDestroy(3);
);
delete cleanupStack;
cleanupStack = NULL;
}
return KErrNone;
}

Links

47 page views in the last 30 days.
×