view src/video/uikit/jumphack.h @ 5004:0c72ae7b7cb2

Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics. Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier() Added an atomic test adapted from code by Michael Davidsaver
author Sam Lantinga <slouken@libsdl.org>
date Sun, 16 Jan 2011 15:16:39 -0800
parents e8045ba3f79f
children b915b3181cc2
line wrap: on
line source

/*
 *  jumphack.h
 *  SDLiPhoneOS
 *
 */

#ifndef _jumphack_h
#define _jumphack_h

#include "setjmp.h"

/* see SDL_uikitevents.m for more info */

extern jmp_buf *jump_env(void);

#endif