Skip to content

Commit

Permalink
update facil.io CSTL to latest developer version + minor fixes and ad…
Browse files Browse the repository at this point in the history
…justments
  • Loading branch information
boazsegev committed Nov 25, 2024
1 parent 82fb628 commit e23f0f3
Show file tree
Hide file tree
Showing 16 changed files with 22,132 additions and 21,854 deletions.
2 changes: 1 addition & 1 deletion exe/iodine
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module Iodine
return nil
end
build = Rack::Builder.parse_file(fn)
build[0]
build
end
def self.iodine___load_neorack fn
return nil unless fn
Expand Down
43,668 changes: 21,978 additions & 21,690 deletions ext/iodine/fio-stl.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ext/iodine/iodine.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ void Init_iodine_ext(void) {
Init_Iodine_TLS();
Init_Iodine_Connection();

fio_srv_async_init(&IODINE_THREAD_POOL, (uint32_t)fio_cli_get_i("-t"));
fio_io_async_attach(&IODINE_THREAD_POOL, (uint32_t)fio_cli_get_i("-t"));
}
8 changes: 4 additions & 4 deletions ext/iodine/iodine.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ static void iodine_defer_performe_once(void *block, void *ignr);
#define IODINE_DEFER_BLOCK(blk) \
do { \
STORE.hold((blk)); \
fio_srv_async(&IODINE_THREAD_POOL, \
iodine_defer_performe_once, \
(void *)(blk)); \
fio_io_async(&IODINE_THREAD_POOL, \
iodine_defer_performe_once, \
(void *)(blk)); \
} while (0)

/* *****************************************************************************
Expand All @@ -110,7 +110,7 @@ Common Iodine Helpers
***************************************************************************** */

/* IO reactor thread-pool */
static fio_srv_async_s IODINE_THREAD_POOL;
static fio_io_async_s IODINE_THREAD_POOL;

/* layer 1 helpers */
#include "iodine_arg_helper.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/iodine/iodine_cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static VALUE iodine_cli_get(VALUE self, VALUE key) {
}

static VALUE iodine_cli_set(VALUE self, VALUE key, VALUE value) {
if (fio_srv_is_running() || !fio_srv_is_master())
if (fio_io_is_running() || !fio_io_is_master())
rb_raise(rb_eException,
"Setting CLI arguments can only be performed before Iodine.start "
"and in the master process.");
Expand Down
Loading

0 comments on commit e23f0f3

Please sign in to comment.