diff options
| author | Unbit <info@unbit.it> | 2013-11-29 13:32:30 +0000 |
|---|---|---|
| committer | Unbit <info@unbit.it> | 2013-11-29 13:32:30 +0000 |
| commit | e4d3d209c8efdfa6e0d1edb881405c03d17a0fd7 (patch) | |
| tree | 5283081d219b78ec7bd2e1e64ab8fc306accfba7 /core/sharedarea.c | |
| parent | 5182eaf485674787f3c75e27a95b4140d3f9b637 (diff) | |
| download | uwsgi-e4d3d209c8efdfa6e0d1edb881405c03d17a0fd7.tar.gz | |
allows sharedarea_wait to specify the freq
Diffstat (limited to 'core/sharedarea.c')
| -rw-r--r-- | core/sharedarea.c | 1 |
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); |
