Commit a3f6457
committed
minor #14179 Fix bad example of lock (jderusse)
This PR was submitted for the 4.4 branch but it was merged into the 3.4 branch instead.
Discussion
----------
Fix bad example of lock
I just realized that example in lock were BAD. If you don't check the return of `$lock->acquire()` you don't know if the lock has been acquired
PR against 4.4 because currently maintained, but bug exists since 3.4
Commits
-------
5233c2a Fix bad example of lock1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
366 | 370 | | |
367 | 371 | | |
368 | 372 | | |
369 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
370 | 376 | | |
371 | 377 | | |
372 | 378 | | |
| |||
0 commit comments