D | adapter.h | 32 #define AdapterMalloc(a) malloc(a) argument 33 #define AdapterFree(a) \ argument 35 if ((a) != nullptr) { \ 36 (void) free((void *)(a)); \ 37 a = nullptr; \ 42 #define MutexDelete(a) pthread_mutex_destroy(a) argument 43 #define MutexAcquire(a, b) pthread_mutex_lock(a) argument 44 #define MutexRelease(a) pthread_mutex_unlock(a) argument 52 #define AdapterMalloc(a) OhosMalloc(MEM_TYPE_APPFMK_LSRAM, a) argument 53 #define AdapterFree(a) \ argument [all …]
|