summaryrefslogtreecommitdiff
path: root/core/sharedarea.c
diff options
context:
space:
mode:
authorUnbit <info@unbit.it>2013-11-29 13:32:30 +0000
committerUnbit <info@unbit.it>2013-11-29 13:32:30 +0000
commite4d3d209c8efdfa6e0d1edb881405c03d17a0fd7 (patch)
tree5283081d219b78ec7bd2e1e64ab8fc306accfba7 /core/sharedarea.c
parent5182eaf485674787f3c75e27a95b4140d3f9b637 (diff)
downloaduwsgi-e4d3d209c8efdfa6e0d1edb881405c03d17a0fd7.tar.gz
allows sharedarea_wait to specify the freq
Diffstat (limited to 'core/sharedarea.c')
-rw-r--r--core/sharedarea.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sharedarea.c b/core/sharedarea.c
index 920f090d..d7d094c2 100644
--- a/core/sharedarea.c
+++ b/core/sharedarea.c
@@ -66,6 +66,7 @@ int uwsgi_sharedarea_wait(int id, int freq, int timeout) {
int waiting = 0;
struct uwsgi_sharedarea *sa = uwsgi_sharedarea_get_by_id(id, 0);
if (!sa) return -1;
+ if (!freq) freq = 100;
uwsgi_rlock(sa->lock);
uint64_t updates = sa->updates;
uwsgi_rwunlock(sa->lock);