From e44918539487285e1186ec229bbdf25591a7dae1 Mon Sep 17 00:00:00 2001 From: fanasina Date: Thu, 22 May 2025 23:21:35 +0200 Subject: [PATCH] add yworker in y_socket --- y_socket_t/include/y_socket_t/y_socket_t.h | 4 ++++ y_socket_t/test/Makefile | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/y_socket_t/include/y_socket_t/y_socket_t.h b/y_socket_t/include/y_socket_t/y_socket_t.h index 377c738..a0f2963 100644 --- a/y_socket_t/include/y_socket_t/y_socket_t.h +++ b/y_socket_t/include/y_socket_t/y_socket_t.h @@ -22,6 +22,10 @@ #include "y_socket_t/y_node_t.h" +#include "y_worker_t/y_worker_t.h" +#include "y_worker_t/y_task_t.h" + + #define BUF_SIZE 500 #define type4 diff --git a/y_socket_t/test/Makefile b/y_socket_t/test/Makefile index c836003..f30bd78 100644 --- a/y_socket_t/test/Makefile +++ b/y_socket_t/test/Makefile @@ -6,10 +6,11 @@ NAME_TEST=is_good CC=gcc YTESTDIR=$(PWD)/../../ytest_t YLISTDIR=$(PWD)/../../list_t +YWORKDIR=$(PWD)/../../y_worker_t ROOT_DIR=$(PWD)/.. INCLUDE_DIR=$(ROOT_DIR)/include -CFLAGS=-I$(INCLUDE_DIR) -I$(YTESTDIR)/include_ytest/include -I$(YLISTDIR)/src +CFLAGS=-I$(INCLUDE_DIR) -I$(YTESTDIR)/include_ytest/include -I$(YLISTDIR)/src -I$(YWORKDIR)/include LDFLAGS=-L$(YTESTDIR) -lytest -lpthread -lm -lOpenCL #SRC_DIR=$(ROOT_DIR)/src @@ -33,11 +34,14 @@ YNODESRC_O=$(YNODESRC:.c=.o) YLISTSRC=$(YLISTDIR)/src/list_t/list_t.c YLISTSRC_O=$(YLISTSRC:.c=.o) +YWORKSRC_0=$(YWORKDIR)/src/y_worker_t/y_worker_t.o +YTASKSRC_0=$(YWORKDIR)/src/y_worker_t/y_task_t.o + TOPTARGETS := all clean -DEPS=$(YTESTDIR) $(YLISTDIR) $(ROOT_DIR) +DEPS=$(YTESTDIR) $(YLISTDIR) $(YWORKDIR) $(ROOT_DIR) -OBJ=$(YSOCKSRC_O) $(YNODESRC_O) $(YLISTSRC_O) +OBJ=$(YSOCKSRC_O) $(YNODESRC_O) $(YLISTSRC_O) $(YWORKSRC_0) $(YTASKSRC_0) LIB_YTEST=$(YTESTDIR)/libytest.so