Closed joncnet closed 5 years ago
Regarding the double lock acquisition:
https://github.com/kohler/click/blob/master/include/click/sync.hh
/* @brief Acquires the ReadWriteLock for writing.
for (unsigned i = 0; i < (unsigned) num_possible_cpus(); i++) _l[i]._lock.acquire();
}
Regarding the double lock acquisition:
https://github.com/kohler/click/blob/master/include/click/sync.hh
/* @brief Acquires the ReadWriteLock for writing.
if CLICK_LINUXMODULE && defined(CONFIG_SMP)
for (unsigned i = 0; i < (unsigned) num_possible_cpus(); i++) _l[i]._lock.acquire();
endif
}