Changeset e4e9182903c4915dd0c1e73eff6b325f0d3be54d
- Timestamp:
- 03/30/08 16:15:09
(5 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1206886509 +0300
- git-parent:
[30267d389073ee38e29728d0246ef5106e9e1f1a]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1206885955 +0300
- Message:
Do NOT destroy the "libvlc"/global/bank/whatever lock variable.
The whole point of a global lock is that it is... global. Destroying it
every time it's released is severe brain damage, as we end up taking a
different lock all the time (or worse destroying the lock while another
threads is competing for it).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r68996a0 |
re4e9182 |
|
| 178 | 178 | } |
|---|
| 179 | 179 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 180 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 181 | 180 | |
|---|
| 182 | 181 | /* Allocate a libvlc instance object */ |
|---|
| … | … | |
| 1057 | 1056 | } |
|---|
| 1058 | 1057 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 1059 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 1060 | 1058 | |
|---|
| 1061 | 1059 | msg_Flush( p_libvlc ); |
|---|
| r30267d3 |
re4e9182 |
|
| 148 | 148 | |
|---|
| 149 | 149 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 150 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 151 | | |
|---|
| 152 | 150 | } |
|---|
| 153 | 151 | |
|---|
| … | … | |
| 173 | 171 | { |
|---|
| 174 | 172 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 175 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 176 | 173 | return; |
|---|
| 177 | 174 | } |
|---|
| … | … | |
| 179 | 176 | { |
|---|
| 180 | 177 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 181 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 182 | 178 | return; |
|---|
| 183 | 179 | } |
|---|
| 184 | 180 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 185 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 186 | 181 | |
|---|
| 187 | 182 | /* Save the configuration */ |
|---|
| … | … | |
| 262 | 257 | { |
|---|
| 263 | 258 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 264 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 265 | 259 | return; |
|---|
| 266 | 260 | } |
|---|
| 267 | 261 | p_libvlc_global->p_module_bank->b_builtins = VLC_TRUE; |
|---|
| 268 | 262 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 269 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 270 | 263 | |
|---|
| 271 | 264 | msg_Dbg( p_this, "checking builtin modules" ); |
|---|
| … | … | |
| 293 | 286 | { |
|---|
| 294 | 287 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 295 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 296 | 288 | return; |
|---|
| 297 | 289 | } |
|---|
| 298 | 290 | p_libvlc_global->p_module_bank->b_plugins = VLC_TRUE; |
|---|
| 299 | 291 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 300 | | var_Destroy( p_libvlc_global, "libvlc" ); |
|---|
| 301 | 292 | |
|---|
| 302 | 293 | msg_Dbg( p_this, "checking plugin modules" ); |
|---|