From 348dd45385fcdfa27a1ffb1a55c213a7c43274e5 Mon Sep 17 00:00:00 2001 From: lxsang Date: Thu, 19 Dec 2019 09:52:56 +0100 Subject: [PATCH] fix write --- lib/handle.c | 5 ++--- lib/scheduler.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/handle.c b/lib/handle.c index fa0ffae..c7a3255 100644 --- a/lib/handle.c +++ b/lib/handle.c @@ -299,10 +299,9 @@ int antd_send(void *src, const void* data, int len) break; } } - - break; if(written == 0) written = count; + break; } } //source->attempt = 0; @@ -436,7 +435,7 @@ int antd_recv(void *src, void* data, int len) break; } } - if(read ==0) + if(read = 0) read = received; break; } diff --git a/lib/scheduler.c b/lib/scheduler.c index 9da0582..9c8f5cd 100644 --- a/lib/scheduler.c +++ b/lib/scheduler.c @@ -226,8 +226,8 @@ antd_task_t* antd_create_task(void* (*handle)(void*), void *data, void* (*callba task->handle = handle; task->callback = callback_of(callback); task->priority = NORMAL_PRIORITY; - //task->type = HEAVY; - task->type = LIGHT; + task->type = HEAVY; + //task->type = LIGHT; task->access_time = atime; return task; }