Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 25) sorted by relevance

/unit/src/
H A Dnxt_time.c25 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
32 now->nsec = ts.tv_nsec; in nxt_realtime()
49 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
56 now->nsec = ts.tv_nsec; in nxt_realtime()
72 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
79 now->nsec = ts.tv_nsec; in nxt_realtime()
88 nxt_realtime(nxt_realtime_t *now) in nxt_realtime() argument
95 now->nsec = tv.tv_usec * 1000; in nxt_realtime()
239 now->previous = current; in nxt_monotonic_time()
246 now->monotonic++; in nxt_monotonic_time()
[all …]
H A Dnxt_thread_time.c120 nxt_monotonic_time(&now); in nxt_time_thread()
123 nxt_shared_time = now; in nxt_time_thread()
137 thr->time.now = now; in nxt_time_thread()
168 if (now->realtime.sec == t && now->realtime.nsec == n in nxt_thread_time_shared()
169 && now->monotonic == m && now->update == u) in nxt_thread_time_shared()
204 if (now->monotonic >= now->update) { in nxt_thread_realtime_update()
208 now->update = now->monotonic + delta; in nxt_thread_realtime_update()
216 if (now->monotonic >= now->update) { in nxt_thread_realtime_update()
220 now->update = now->monotonic + delta; in nxt_thread_realtime_update()
355 nxt_realtime_t now; in nxt_thread_time_string_no_cache() local
[all …]
H A Dnxt_thread_cond.c64 nxt_realtime_t *now; in nxt_thread_cond_wait() local
87 now = nxt_thread_realtime(thr); in nxt_thread_cond_wait()
89 ns = now->nsec + timeout; in nxt_thread_cond_wait()
90 ts.tv_sec = now->sec + ns / 1000000000; in nxt_thread_cond_wait()
H A Dnxt_log_moderation.c18 nxt_time_t now; in nxt_log_moderate_allow() local
23 now = nxt_thread_time(thr); in nxt_log_moderate_allow()
32 if (now != mod->last) { in nxt_log_moderate_allow()
35 mod->last = now; in nxt_log_moderate_allow()
H A Dnxt_timer.c76 time = engine->timers.now + timeout; in nxt_timer_add()
265 time, timer->bias, timers->now); in nxt_timer_find()
267 delta = nxt_msec_diff(time, timers->now); in nxt_timer_find()
274 timers->minimum = timers->now + 24 * 60 * 60 * 1000; in nxt_timer_find()
281 nxt_timer_expire(nxt_event_engine_t *engine, nxt_msec_t now) in nxt_timer_expire() argument
289 timers->now = now; in nxt_timer_expire()
292 timers->minimum, now); in nxt_timer_expire()
295 if (nxt_msec_diff(timers->minimum , now) > 0) { in nxt_timer_expire()
308 if (nxt_msec_diff(timer->time , now) > (int32_t) timer->bias) { in nxt_timer_expire()
H A Dnxt_app_log.c12 static u_char *nxt_log_error_time(u_char *buf, nxt_realtime_t *now,
15 static u_char *nxt_log_debug_time(u_char *buf, nxt_realtime_t *now,
112 nxt_log_error_time(u_char *buf, nxt_realtime_t *now, struct tm *tm, size_t size, in nxt_log_error_time() argument
132 nxt_log_debug_time(u_char *buf, nxt_realtime_t *now, struct tm *tm, size_t size, in nxt_log_debug_time() argument
138 now->nsec / 1000000); in nxt_log_debug_time()
H A Dnxt_thread_time.h20 u_char *(*handler)(u_char *buf, nxt_realtime_t *now,
41 nxt_monotonic_time_t now; member
74 (thr)->time.now.monotonic
H A Dnxt_semaphore.c81 nxt_realtime_t *now; in nxt_sem_wait() local
132 now = nxt_thread_realtime(thr); in nxt_sem_wait()
133 ns = now->nsec + timeout; in nxt_sem_wait()
134 ts.tv_sec = now->sec + ns / 1000000000; in nxt_sem_wait()
H A Dnxt_time.h38 NXT_EXPORT void nxt_realtime(nxt_realtime_t *now);
39 NXT_EXPORT void nxt_monotonic_time(nxt_monotonic_time_t *now);
H A Dnxt_timer.h66 nxt_msec_t now; member
97 void nxt_timer_expire(nxt_event_engine_t *engine, nxt_msec_t now);
H A Dnxt_cache.c146 q->now = nxt_cache_time(thr); in nxt_cache_query()
190 if (q->now < expiry) { in nxt_cache_query_locked()
298 if (q->now < expiry) { in nxt_cache_node_test()
471 q->now = nxt_cache_time(thr); in nxt_cache_release()
531 node->accessed = q->now - cache->start_time; in nxt_cache_release_locked()
H A Dnxt_cache.h109 nxt_time_t now; member
H A Dnxt_stream_module.c108 rate->last = engine->timers.now; in nxt_stream_connection_peer()
H A Dnxt_event_engine.c135 engine->timers.now = nxt_thread_monotonic_time(thread) / 1000000; in nxt_event_engine_create()
513 nxt_msec_t timeout, now; in nxt_event_engine_start() local
551 now = nxt_thread_monotonic_time(thr) / 1000000; in nxt_event_engine_start()
553 nxt_timer_expire(engine, now); in nxt_event_engine_start()
H A Dnxt_http_request.c28 static u_char *nxt_http_date_cache_handler(u_char *buf, nxt_realtime_t *now,
838 nxt_http_date_cache_handler(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_http_date_cache_handler() argument
H A Dnxt_controller.c107 static u_char *nxt_controller_date(u_char *buf, nxt_realtime_t *now,
2129 nxt_controller_date(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_controller_date() argument
H A Dnxt_router.c206 static u_char *nxt_router_access_log_date(u_char *buf, nxt_realtime_t *now,
3860 nxt_router_access_log_date(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_router_access_log_date() argument
4883 main_app_port->idle_start = task->thread->engine->timers.now; in nxt_router_app_port_release()
5028 threshold = engine->timers.now + app->joint->idle_timer.bias; in nxt_router_adjust_idle_timer()
/unit/src/java/nginx/unit/websocket/server/
H A DWsWriteTimeout.java49 long now = System.currentTimeMillis(); in backgroundProcess() local
51 if (endpoint.getTimeoutExpiry() < now) { in backgroundProcess()
/unit/pkg/deb/debian/
H A Dunit.example-python-app6 output = datetime.datetime.now().strftime("%Y-%m-%d %I:%M:%S %p")
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.example-python-app6 output = datetime.datetime.now().strftime("%Y-%m-%d %I:%M:%S %p")
H A DCOPYRIGHT.unit-jsc-common544 1.11. "Patent Claims" means any patent claim(s), now owned or
/unit/pkg/deb/debian.module/
H A Dunit.example-python-app6 output = datetime.datetime.now().strftime("%Y-%m-%d %I:%M:%S %p")
H A Dcopyright.unit-jsc-common544 1.11. "Patent Claims" means any patent claim(s), now owned or
/unit/
H A DCHANGES58 *) Change: the "share" option now specifies the entire path to the files
196 module are now compliant with Stream API.
240 *) Change: HTTP header fields with underscores ("_") are now discarded
280 *) Change: the PHP module is now initialized before chrooting; this
288 *) Feature: the Python module now fully supports applications that use
291 *) Feature: the Python module now has a built-in WebSocket server
568 *) Change: now three numbers are always used for versioning: major,
571 *) Change: now QUERY_STRING is always defined even if the request does
607 *) Change: now rpath is set in Ruby module only if the library was not
716 *) Change: UTF-8 characters are now allowed in request header field
[all …]
/unit/pkg/rpm/
H A Dunit.spec.in25 %define LD_OPT -Wl,-z,relro -Wl,-z,now -pie