]> git.sesse.net Git - vlc/commit
Use a global R/W lock for configuration
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 19:31:19 +0000 (21:31 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 19:48:02 +0000 (21:48 +0200)
commitb2c266cd066e2ca40e117c86a47710387e6beaf7
tree09c3bdad1bda321b12374e8c99d4509ad6a0f499
parentb3dce1b9848a9f6b916a866e8367e1c3d3b19d50
Use a global R/W lock for configuration

Previously, we had one configuration mutex per module.
With a global read/write lock, resetting, loading, saving and
auto-saving the configuration becomes atomic (and use only one lock &
unlock pair). Also, multiple threads can now read the configuration
item of the same module at the same time.

Note that, as the earlier configuration mutex, only configuration item
values are protected. The list of items and their meta-data cannot
change while VLC runs (they're hard-coded in the plugin descriptors).
src/config/configuration.h
src/config/core.c
src/config/file.c
src/modules/modules.c