--- a/tactilefeedback/tactilefeedbackclient/src/touchfeedbackclient.cpp Thu Aug 19 10:13:11 2010 +0300
+++ b/tactilefeedback/tactilefeedbackclient/src/touchfeedbackclient.cpp Tue Aug 31 15:30:39 2010 +0300
@@ -35,8 +35,6 @@
const TInt KTactileChunkInitialSize = 4096; // 4kB
const TInt KTactileChunkMaxSize = 262144; // 256kB
const TUid KTactileClickPluginUid = { 0x2000B493 };
-
-_LIT( KChunkNameFormat, "PID_0x%Lx_TID_0x%Lx" );
// ======== MEMBER FUNCTIONS ========
// ---------------------------------------------------------------------------
@@ -88,14 +86,15 @@
}
// #2 Create shared chunk
+ RThread me;
+
TTactileFeedbackConnectData data;
// Set window group identifier
data.iWindowGroupId = CCoeEnv::Static()->RootWin().Identifier();
- // We use our own process id and thread id as name for the chunk
- data.iChunkName.Format( KChunkNameFormat,
- RProcess().Id().Id(), RThread().Id().Id() );
+ // We use our own thread name as name for the chunk
+ data.iChunkName.Copy( me.Name().Right( KMaxKernelName ) );
// Now create the chunk
TInt err = iChunk.CreateGlobal( data.iChunkName,
@@ -614,10 +613,6 @@
// Clear also client handle to indicate there's no ongoing feedback.
iClientHandle = 0;
}
- else if ( !iClientHandle ) // Stop instant feedback
- {
- iFbClient.StopFeedback();
- }
TRACE("CTouchFeedbackClient::StopFeedback - End");
}