int lock_ret = 0;\
DBG("Thread [%d] trying to lock the Mutex \n", syscall(__NR_gettid));\
lock_ret = pthread_mutex_lock(mut);\
- if(lock_ret != 0) {\
- if(lock_ret == EDEADLK) {\
+ if (lock_ret != 0) {\
+ if (lock_ret == EDEADLK) {\
DBG("Mutex is already locked by the same thread");\
} else {\
ERR("Error locking mutex. Error = %d \n", lock_ret);\
- }\
+ } \
} else {\
DBG("Mutex locked by thread [%d] \n", syscall(__NR_gettid));\
- }\
+ } \
} while (0);\
ERR("Error unlocking mutex. Error = %d \n", unlock_ret);\
} else {\
DBG("Mutex unlocked by thread [%d] \n", syscall(__NR_gettid));\
- }\
+ } \
} while (0);\
mtp_bool _util_thread_create(pthread_t *tid, const mtp_char *tname,