prometheus-client-c icon indicating copy to clipboard operation
prometheus-client-c copied to clipboard

Can I use "pthread_rwlock_rdlock" in function "prom_map_get"?

Open cxyxiaoli opened this issue 4 years ago • 0 comments

In the prom_map_get function, the thread write lock (pthread_rwlock_wrlock) is used.Can I use thread-read locks instead?Would it be more efficiently to change "pthread_rwlock_wrlock" to "pthread_rwlock_rdlock"?

cxyxiaoli avatar Nov 21 '20 16:11 cxyxiaoli