tls-compat.h   tls-compat.h 
skipping to change at line 38 skipping to change at line 38
#include <urcu/compiler.h> #include <urcu/compiler.h>
#include <urcu/arch.h> #include <urcu/arch.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#ifdef CONFIG_RCU_TLS /* Based on ax_tls.m4 */ #ifdef CONFIG_RCU_TLS /* Based on ax_tls.m4 */
# define DECLARE_URCU_TLS(type, name) \ # define DECLARE_URCU_TLS(type, name) \
CONFIG_RCU_TLS type __tls_ ## name CONFIG_RCU_TLS type name
# define DEFINE_URCU_TLS(type, name) \ # define DEFINE_URCU_TLS(type, name) \
CONFIG_RCU_TLS type __tls_ ## name CONFIG_RCU_TLS type name
# define URCU_TLS(name) (__tls_ ## name) # define URCU_TLS(name) (name)
#else /* #ifndef CONFIG_RCU_TLS */ #else /* #ifndef CONFIG_RCU_TLS */
# include <pthread.h> # include <pthread.h>
struct urcu_tls { struct urcu_tls {
pthread_key_t key; pthread_key_t key;
pthread_mutex_t init_mutex; pthread_mutex_t init_mutex;
int init_done; int init_done;
}; };
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/