summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-04 00:38:04 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-12 15:27:54 +0200
commitd0924ae5a87121d91d59259661dd262eb03becd6 (patch)
tree484a7d71bffcad37bd903755596121247b047848 /osdep
parent4ee0d0882030aaf11b11386018c10a9e336c7c7d (diff)
downloadmpv-d0924ae5a87121d91d59259661dd262eb03becd6.tar.bz2
mpv-d0924ae5a87121d91d59259661dd262eb03becd6.tar.xz
gl_common: add some sort of locking API
Some OpenGL implementations on some platforms require that a context is current only on one thread. For this reason, mpgl_lock() and mpgl_unlock() take care of this as well for convenience. Each backend that needs thread safety should provide it's own locking strategy inside of `set_current`.
Diffstat (limited to 'osdep')
0 files changed, 0 insertions, 0 deletions