Kouhei Sutou
null+****@clear*****
Wed Dec 9 11:54:31 JST 2015
Kouhei Sutou 2015-12-09 11:54:31 +0900 (Wed, 09 Dec 2015) New Revision: 82cfe4d0984dfe3bcc9ccc56ead87a4ec55dbd7a https://github.com/groonga/groonga/commit/82cfe4d0984dfe3bcc9ccc56ead87a4ec55dbd7a Message: Use "== 0" instead of "!" for number Modified files: src/groonga.c Modified: src/groonga.c (+2 -2) =================================================================== --- src/groonga.c 2015-12-09 11:53:11 +0900 (4cb5add) +++ src/groonga.c 2015-12-09 11:54:31 +0900 (a6610d0) @@ -2000,7 +2000,7 @@ h_handler(grn_ctx *ctx, grn_obj *msg) ((grn_msg *)msg)->u.fd = fd; MUTEX_LOCK_ENSURE(ctx, q_mutex); grn_com_queue_enque(ctx, &ctx_new, (grn_com_queue_entry *)msg); - if (!n_floating_threads && n_running_threads < max_n_floating_threads) { + if (n_floating_threads == 0 && n_running_threads < max_n_floating_threads) { grn_thread thread; n_running_threads++; if (THREAD_CREATE(thread, h_worker, arg)) { @@ -2111,7 +2111,7 @@ g_dispatcher(grn_ctx *ctx, grn_edge *edge) if (edge->stat == EDGE_IDLE) { grn_com_queue_enque(ctx, &ctx_new, (grn_com_queue_entry *)edge); edge->stat = EDGE_WAIT; - if (!n_floating_threads && n_running_threads < max_n_floating_threads) { + if (n_floating_threads == 0 && n_running_threads < max_n_floating_threads) { grn_thread thread; n_running_threads++; if (THREAD_CREATE(thread, g_worker, NULL)) { -------------- next part -------------- HTML����������������������������...ダウンロード