comparison src/cdrom/macosx/SDLOSXCAGuard.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents dc6b59e925a2
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
94 94
95 /* Construction/Destruction */ 95 /* Construction/Destruction */
96 /*public:*/ 96 /*public:*/
97 /* Actions */ 97 /* Actions */
98 /*public:*/ 98 /*public:*/
99 int (*Lock)(struct S_SDLOSXCAGuard *cag); 99 int (*Lock) (struct S_SDLOSXCAGuard * cag);
100 void (*Unlock)(struct S_SDLOSXCAGuard *cag); 100 void (*Unlock) (struct S_SDLOSXCAGuard * cag);
101 int (*Try)(struct S_SDLOSXCAGuard *cag, int *outWasLocked); /* returns true if lock is free, false if not */ 101 int (*Try) (struct S_SDLOSXCAGuard * cag, int *outWasLocked); /* returns true if lock is free, false if not */
102 void (*Wait)(struct S_SDLOSXCAGuard *cag); 102 void (*Wait) (struct S_SDLOSXCAGuard * cag);
103 void (*Notify)(struct S_SDLOSXCAGuard *cag); 103 void (*Notify) (struct S_SDLOSXCAGuard * cag);
104 104
105 /* Implementation */ 105 /* Implementation */
106 /*protected:*/ 106 /*protected:*/
107 pthread_mutex_t mMutex; 107 pthread_mutex_t mMutex;
108 pthread_cond_t mCondVar; 108 pthread_cond_t mCondVar;
109 pthread_t mOwner; 109 pthread_t mOwner;
110 } SDLOSXCAGuard; 110 } SDLOSXCAGuard;
111 111
112 SDLOSXCAGuard *new_SDLOSXCAGuard(void); 112 SDLOSXCAGuard *new_SDLOSXCAGuard (void);
113 void delete_SDLOSXCAGuard(SDLOSXCAGuard *cag); 113 void delete_SDLOSXCAGuard (SDLOSXCAGuard * cag);
114 114
115 #endif 115 #endif
116 116 /* vi: set ts=4 sw=4 expandtab: */