GLCALLBACKTABLE callbacks;
- pipe_mutex ctx_mutex;
+ CRITICAL_SECTION ctx_mutex;
struct handle_table *ctx_table;
pipe_mutex fb_mutex;
}
+static inline void
+stw_lock_contexts(struct stw_device *stw_dev)
+{
+ EnterCriticalSection(&stw_dev->ctx_mutex);
+}
+
+
+static inline void
+stw_unlock_contexts(struct stw_device *stw_dev)
+{
+ LeaveCriticalSection(&stw_dev->ctx_mutex);
+}
+
+
#endif /* STW_DEVICE_H_ */