1
0
Fork 0
frr/tools/coccinelle/frr_with_mutex.cocci

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
252 B
Text
Raw Normal View History

@@
expression E;
iterator name frr_with_mutex;
@@
- pthread_mutex_lock(E);
+ frr_with_mutex(E) {
- {
...
- }
- pthread_mutex_unlock(E);
+ }
@@
expression E;
@@
- pthread_mutex_lock(E);
+ frr_with_mutex(E) {
...
- pthread_mutex_unlock(E);
+ }