Skip to content

Commit

Permalink
glretrace: Use OS_THREAD_SPECIFIC_PTR on glws_cocoa.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Apr 23, 2013
1 parent 2ea1b5c commit b4a2fe7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions retrace/glws_cocoa.mm
Expand Up @@ -47,6 +47,7 @@

#include <Cocoa/Cocoa.h>

#include "os_thread.hpp"
#include "glws.hpp"


Expand Down Expand Up @@ -74,8 +75,8 @@ + (void)enterMultiThreaded {
namespace glws {


static __thread NSAutoreleasePool *
autoreleasePool = nil;
static OS_THREAD_SPECIFIC_PTR(NSAutoreleasePool)
autoreleasePool;


class CocoaVisual : public Visual
Expand Down

0 comments on commit b4a2fe7

Please sign in to comment.