diff options
-rw-r--r-- | Android.mk | 1 | ||||
-rw-r--r-- | Linux_x86/phDal4Nfc.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -100,6 +100,7 @@ LOCAL_SRC_FILES += Linux_x86/phDal4Nfc.c LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_i2c.c LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_messageQueueLib.c +#LOCAL_CFLAGS += -DNXP_MESSAGING -DANDROID -DDEBUG -DLLC_TRACE -DINCLUDE_DALINIT_DEINIT -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -msoft-float -Uarm -fno-common -fpic LOCAL_CFLAGS += -DNXP_MESSAGING -DINCLUDE_DALINIT_DEINIT -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -msoft-float -Uarm -fno-common -fpic ifeq ($(NFC_BUILD_VARIANT),debug) diff --git a/Linux_x86/phDal4Nfc.c b/Linux_x86/phDal4Nfc.c index d824d6e..88be4c8 100644 --- a/Linux_x86/phDal4Nfc.c +++ b/Linux_x86/phDal4Nfc.c @@ -705,6 +705,8 @@ int phDal4Nfc_ReaderThread(void * pArg) phOsalNfc_Message_t OsalMsg ; int i; + pthread_setname_np(pthread_self(), "reader"); + /* Create the overlapped event. Must be closed before exiting to avoid a handle leak. This event is used READ API and the Reader thread*/ pthread_mutex_unlock(&nThreadsEventMutex); /* To indicate thread is ready */ @@ -844,6 +846,8 @@ int phDal4Nfc_WriterThread(void * pArg) int * pmsgType=&MsgType; int i; + pthread_setname_np(pthread_self(), "writer"); + /* Create the overlapped event. Must be closed before exiting to avoid a handle leak. This event is used READ API and the Reader thread*/ pthread_mutex_unlock(&nThreadsEventMutex); /* To indicate thread is ready */ |