From 3edcd35a836d567a528dc6029be4f66b3f1bf203 Mon Sep 17 00:00:00 2001 From: telleriam Date: Mon, 27 Oct 2008 08:10:31 +0000 Subject: [PATCH] Adding frsh_thread_join_in_background() NOT YET TESTED git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1352 35b4ef3e-fd22-0410-ab77-dab3279adceb --- frsh_core.h | 7 +++++++ frsh_error.h | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frsh_core.h b/frsh_core.h index d3d443a..1507372 100644 --- a/frsh_core.h +++ b/frsh_core.h @@ -846,6 +846,13 @@ int frsh_thread_create_in_background frsh_vres_id_t *vres_id); +int frsh_thread_join_in_background(frsh_resource_id_t resource_id, + frsh_resource_type_t resource_type, + const char *label, + frsh_vres_id_t *vres_id); + + + /** * frsh_thread_bind() * diff --git a/frsh_error.h b/frsh_error.h index 19b3400..54a779a 100644 --- a/frsh_error.h +++ b/frsh_error.h @@ -123,9 +123,10 @@ #define FRSH_ERR_CONTRACT_TYPE_NOT_COMPATIBLE 0x02004025 #define FRSH_ERR_CAPACITY_NOT_DECREASING 0x02004026 #define FRSH_ERR_CONTRACT_LABEL_UNKNOWN 0x02004027 -#define FRSH_ERR_OUT_OF_BUDGET 0x02004028 +#define FRSH_ERR_OUT_OF_BUDGET 0x02004028 +#define FRSH_ERR_ALREADY_IN_FRSH 0x02004029 -#define FRSH_ERR_LAST_VALUE 0x02004029 +#define FRSH_ERR_LAST_VALUE 0x02004030 #define ERROR(nn,ss) do {if(nn>FRSH_ERR_BASE_VALUE) my_frsh_strerror(nn, ss); else perror(ss); exit (nn);} while (0) -- 2.39.2