os/mm/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtDevSoundServerStart.cpp
Update contrib.
1 // Copyright (c) 2004-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #include <ecom/ecom.h>
18 #include "MmfBtDevSoundServerStart.h"
19 #include "MmfBtDevSoundServer.h"
24 EXPORT_C TInt CMMFDevSoundServer::StartThread(TAny* aParms)
26 Thread entry-point function.
27 The TServerStart objects is passed as the thread parameter
32 TDevSoundServerStart* start = reinterpret_cast<TDevSoundServerStart*>(aParms);
33 CTrapCleanup* cleanup = CTrapCleanup::New();
38 CActiveScheduler* sched=NULL;
39 TRAP(err, sched=new(ELeave) CActiveScheduler);
42 CActiveScheduler::Install(sched);
43 CMMFDevSoundServer* server = NULL;
44 TRAPD(err,server = CMMFDevSoundServer::NewL(start->iAudioServer, start->iProcessId));
48 // Sync with the client and enter the active scheduler
49 RThread::Rendezvous(KErrNone);
57 REComSession::FinalClose();