gavin-yy commented on a change in pull request #1031: URL: https://github.com/apache/mynewt-nimble/pull/1031#discussion_r717401931
########## File path: porting/npl/linux/src/os_mutex.c ########## @@ -31,7 +31,11 @@ ble_npl_mutex_init(struct ble_npl_mutex *mu) } pthread_mutexattr_init(&mu->attr); +#ifdef PTHREAD_MUTEX_RECURSIVE_NP pthread_mutexattr_settype(&mu->attr, PTHREAD_MUTEX_RECURSIVE_NP); +#else + pthread_mutexattr_settype(&mu->attr, PTHREAD_MUTEX_RECURSIVE); Review comment: yeah, good suggestion. PTHREAD_MUTEX_RECURSIVE_NP is not POSIX standard as you just pointed out. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org