mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 06:00:35 +01:00
st/wgl: make own_mutex() non-static
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
e0f4504adf
commit
eb79b2b331
2 changed files with 7 additions and 4 deletions
|
|
@ -51,8 +51,8 @@ struct stw_st_framebuffer {
|
|||
/**
|
||||
* Is the given mutex held by the calling thread?
|
||||
*/
|
||||
static bool
|
||||
own_mutex(const CRITICAL_SECTION *cs)
|
||||
bool
|
||||
stw_own_mutex(const CRITICAL_SECTION *cs)
|
||||
{
|
||||
// We can't compare OwningThread with our thread handle/id (see
|
||||
// http://stackoverflow.com/a/12675635 ) but we can compare with the
|
||||
|
|
@ -182,7 +182,7 @@ stw_st_framebuffer_present_locked(HDC hdc,
|
|||
struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
|
||||
struct pipe_resource *resource;
|
||||
|
||||
assert(own_mutex(&stwfb->fb->mutex));
|
||||
assert(stw_own_mutex(&stwfb->fb->mutex));
|
||||
|
||||
resource = stwfb->textures[statt];
|
||||
if (resource) {
|
||||
|
|
@ -192,7 +192,7 @@ stw_st_framebuffer_present_locked(HDC hdc,
|
|||
stw_framebuffer_unlock(stwfb->fb);
|
||||
}
|
||||
|
||||
assert(!own_mutex(&stwfb->fb->mutex));
|
||||
assert(!stw_own_mutex(&stwfb->fb->mutex));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@
|
|||
|
||||
struct stw_framebuffer;
|
||||
|
||||
bool
|
||||
stw_own_mutex(const CRITICAL_SECTION *cs);
|
||||
|
||||
struct st_api *
|
||||
stw_st_create_api(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue