projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm-shim: move handle lock to shim_fd
[mesa.git]
/
src
/
drm-shim
/
drm_shim.h
diff --git
a/src/drm-shim/drm_shim.h
b/src/drm-shim/drm_shim.h
index 4a151d49bbc7c3ec23e5830d39eaf784721fa178..4d359dd7f1a357d31fb2c2b2d547f293b96dcd7e 100644
(file)
--- a/
src/drm-shim/drm_shim.h
+++ b/
src/drm-shim/drm_shim.h
@@
-21,6
+21,8
@@
* DEALINGS IN THE SOFTWARE.
*/
+#include <c11/threads.h>
+
#include "util/macros.h"
#include "util/hash_table.h"
@@
-53,6
+55,7
@@
extern struct shim_device shim_device;
struct shim_fd {
int fd;
+ mtx_t handle_lock;
/* mapping from int gem handle to struct shim_bo *. */
struct hash_table *handles;
};