Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Pubnub_c_core by
pubnub_mutex.h
- Committer:
- sveljko
- Date:
- 2016-11-10
- Revision:
- 0:d13755cfb705
File content as of revision 0:d13755cfb705:
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */ #if !defined INC_PUBNUB_MUTEX #define INC_PUBNUB_MUTEX #if PUBNUB_THREADSAFE #include "pbpal_mutex.h" #define pubnub_mutex_t pbpal_mutex_t #define pubnub_mutex_init(m) pbpal_mutex_init(m) #define pubnub_mutex_lock(m) pbpal_mutex_lock(m) #define pubnub_mutex_unlock(m) pbpal_mutex_unlock(m) #define pubnub_mutex_destroy(m) pbpal_mutex_destroy(m) #define pubnub_mutex_decl_and_init(m) pbpal_mutex_decl_and_init(m) #define pubnub_mutex_static_decl_and_init(m) pbpal_mutex_static_decl_and_init(m) #define pubnub_mutex_init_static(m) pbpal_mutex_init_static(m) #else typedef struct { int dummy; } pubnub_mutex_t; #define pubnub_mutex_init(m) #define pubnub_mutex_lock(m) #define pubnub_mutex_unlock(m) #define pubnub_mutex_destroy(m) #define pubnub_mutex_decl_and_init(m) #define pubnub_mutex_static_decl_and_init(m) #define pubnub_mutex_init_static(m) #endif #endif /* !defined INC_PUBNUB_MUTEX */