#include <string.h>
#include "xnnpack.h"
#include "xnnpack/common.h"
#include "xnnpack/log.h"
#include "xnnpack/mutex.h"
#if XNN_PLATFORM_WINDOWS
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#elif XNN_PLATFORM_MACOS || XNN_PLATFORM_IOS
#include <dispatch/dispatch.h>
#else
#include <pthread.h>
#endif
enum xnn_status xnn_mutex_init(struct xnn_mutex* mutex) { … }
enum xnn_status xnn_mutex_lock(struct xnn_mutex* mutex) { … }
enum xnn_status xnn_mutex_unlock(struct xnn_mutex* mutex) { … }
enum xnn_status xnn_mutex_destroy(struct xnn_mutex* mutex) { … }