#include "pipe/p_compiler.h"
-#include "os/os_thread.h"
#include "util/u_handle_table.h"
#include "stw_icd.h"
#include "stw_pixelformat.h"
CRITICAL_SECTION ctx_mutex;
struct handle_table *ctx_table;
+ /* TODO: use an atomic counter to track the number of locked
+ * stw_framebuffer objects. Assert that the counter is zero when
+ * trying to lock this mutex.
+ */
CRITICAL_SECTION fb_mutex;
struct stw_framebuffer *fb_head;
#ifdef DEBUG
unsigned long memdbg_no;
#endif
+
+ /** WGL_EXT_swap_control */
+ int refresh_rate;
+ int swap_interval;
+
+ bool initialized;
};