diff options
author | Nick Pelly <npelly@google.com> | 2010-10-27 01:12:35 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-10-27 02:00:41 -0700 |
commit | 8763a1998eee9b43169bf0824a77b00b3b88a938 (patch) | |
tree | d446adb6bfcae217378add323532c70059f5500a /Linux_x86 | |
parent | 4c03147f9df22103145e67ce1d7faece051e0bfb (diff) | |
download | external_libnfc-nxp-8763a1998eee9b43169bf0824a77b00b3b88a938.zip external_libnfc-nxp-8763a1998eee9b43169bf0824a77b00b3b88a938.tar.gz external_libnfc-nxp-8763a1998eee9b43169bf0824a77b00b3b88a938.tar.bz2 |
Assign names to reader and writer thread so its easier to debug them.
Change-Id: I2580675e2002546ac28a6a3a5ced7683af9448d9
Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'Linux_x86')
-rw-r--r-- | Linux_x86/phDal4Nfc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |