apply TLS(Thread Local Storage) to MmsHeader struct
authorSeunghwan Lee <sh.cat.lee@samsung.com>
Mon, 30 Sep 2013 07:02:56 +0000 (16:02 +0900)
committerSeunghwan Lee <sh.cat.lee@samsung.com>
Mon, 30 Sep 2013 07:02:56 +0000 (16:02 +0900)
Change-Id: Icf5b5ff11b16f4580f3ac61fdffa898e4af3064c

plugin/mms_plugin/MmsPluginDecode.cpp
plugin/mms_plugin/MmsPluginUserAgent.cpp
plugin/mms_plugin/include/MmsPluginDecode.h

index eb95ec0..b7851f9 100755 (executable)
@@ -147,7 +147,7 @@ static int gMmsDecodeBufLen = 0;            /* number of last read characters */
 static char *gpMmsDecodeBuf1 = NULL;
 static char *gpMmsDecodeBuf2 = NULL;
 
-MmsHeader      mmsHeader =
+__thread MmsHeader     mmsHeader =
 {
        false,                                                                  //bActive
        NULL,                                                                   //pszOwner
index 24592fa..5ef83ef 100755 (executable)
@@ -32,8 +32,6 @@
 #include "MmsPluginStorage.h"
 #include "MmsPluginUtil.h"
 
-extern MmsHeader mmsHeader;
-
 void PRINT_PDU_TYPE(MMS_PDU_TYPE_T pduType)
 {
        switch (pduType) {
index b150be6..36eda58 100755 (executable)
@@ -97,7 +97,7 @@ typedef struct {
        MsgBody msgBody;
 } MmsHeader;
 
-extern MmsHeader mmsHeader;
+extern __thread MmsHeader mmsHeader;
 
 /* Decoding */
 void MmsInitHeader();