mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-15 13:17:41 +03:00
sync palliative: check after block, not before
This commit is contained in:
parent
a1055f57cb
commit
7881861296
@ -350,7 +350,7 @@
|
||||
*/
|
||||
typedef struct _u2_unix {
|
||||
uv_timer_t tim_u; // clay timer
|
||||
uv_prepare_t pre_u; // pre-block fs check
|
||||
uv_check_t syn_u; // fs sync check
|
||||
u2_bean alm; // alarm
|
||||
u2_uhot* hot_u; // host state
|
||||
u2_usig* sig_u; // signal list
|
||||
|
8
v/unix.c
8
v/unix.c
@ -1186,7 +1186,7 @@ u2_unix_ef_look(void)
|
||||
/* _unix_ef_sync(): check for files to sync.
|
||||
*/
|
||||
static void
|
||||
_unix_ef_sync(uv_prepare_t* han_u, c3_i sas_i)
|
||||
_unix_ef_sync(uv_check_t* han_u, c3_i sas_i)
|
||||
{
|
||||
u2_lo_open();
|
||||
u2_lo_shut(u2_yes);
|
||||
@ -1295,7 +1295,7 @@ u2_unix_io_init(void)
|
||||
sig_u->nex_u = unx_u->sig_u;
|
||||
unx_u->sig_u = sig_u;
|
||||
}
|
||||
uv_prepare_init(u2_Host.lup_u, &u2_Host.unx_u.pre_u);
|
||||
uv_check_init(u2_Host.lup_u, &u2_Host.unx_u.syn_u);
|
||||
}
|
||||
|
||||
/* u2_unix_io_talk(): start listening for fs events.
|
||||
@ -1305,7 +1305,7 @@ u2_unix_io_talk()
|
||||
{
|
||||
u2_unix_acquire(u2_Host.cpu_c);
|
||||
u2_unix_ef_move();
|
||||
uv_prepare_start(&u2_Host.unx_u.pre_u, _unix_ef_sync);
|
||||
uv_check_start(&u2_Host.unx_u.syn_u, _unix_ef_sync);
|
||||
}
|
||||
|
||||
/* u2_unix_io_exit(): terminate unix I/O.
|
||||
@ -1313,7 +1313,7 @@ u2_unix_io_talk()
|
||||
void
|
||||
u2_unix_io_exit(void)
|
||||
{
|
||||
uv_prepare_stop(&u2_Host.unx_u.pre_u);
|
||||
uv_check_stop(&u2_Host.unx_u.syn_u);
|
||||
u2_unix_release(u2_Host.cpu_c);
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user