]>
Commit | Line | Data |
---|---|---|
00dffa8c DL |
1 | @@ |
2 | expression E; | |
3 | iterator name frr_with_mutex; | |
4 | @@ | |
5 | ||
6 | - pthread_mutex_lock(E); | |
7 | + frr_with_mutex(E) { | |
8 | - { | |
9 | ... | |
10 | - } | |
11 | - pthread_mutex_unlock(E); | |
12 | + } | |
13 | ||
14 | ||
15 | @@ | |
16 | expression E; | |
17 | @@ | |
18 | ||
19 | - pthread_mutex_lock(E); | |
20 | + frr_with_mutex(E) { | |
21 | ... | |
22 | - pthread_mutex_unlock(E); | |
23 | + } |