os/mm/devsound/sounddevbt/src/A2dpBlueTooth/server/A2dpBTHeadsetAudioIfServerStart.cpp
Update contrib.
1 // Copyright (c) 2005-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 "A2dpBTHeadsetAudioIfServerStart.h"
18 #include "A2dpBTHeadsetAudioIfServer.h"
22 Thread entry-point function.
24 EXPORT_C TInt CA2dpBTHeadsetAudioIfServer::StartThread(TAny* /*aParms*/)
28 CTrapCleanup* cleanup = CTrapCleanup::New();
35 CActiveScheduler* sched = NULL;
36 TRAP(err, sched = new(ELeave) CActiveScheduler);
39 CActiveScheduler::Install(sched);
40 CA2dpBTHeadsetAudioIfServer* server = NULL;
41 TRAP(err, server = CA2dpBTHeadsetAudioIfServer::NewL());
45 // Sync with the client and enter the active scheduler
46 RThread::Rendezvous(KErrNone);