From 8763a1998eee9b43169bf0824a77b00b3b88a938 Mon Sep 17 00:00:00 2001 From: Nick Pelly Date: Wed, 27 Oct 2010 01:12:35 -0700 Subject: Assign names to reader and writer thread so its easier to debug them. Change-Id: I2580675e2002546ac28a6a3a5ced7683af9448d9 Signed-off-by: Nick Pelly --- Linux_x86/phDal4Nfc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Linux_x86') 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 */ -- cgit v1.1