From 701a5d9cf5a9416eb8303d703049bf1d4c6c69f0 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 18 Jun 2014 23:35:45 +0200 Subject: kern/thread: add thread_join This change affects more files than it apparently would at first glance. This is because circular dependencies can easily be created between the thread, mutex, condition and spinlock modules. As a result, some of the types of these modules are now defined in kern/types.h. --- kern/condition.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'kern/condition.h') diff --git a/kern/condition.h b/kern/condition.h index 6802063b..9cd581a9 100644 --- a/kern/condition.h +++ b/kern/condition.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Richard Braun. + * Copyright (c) 2013-2014 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,12 +25,9 @@ #include #include #include +#include -struct condition { - struct spinlock lock; - struct mutex *mutex; - struct list waiters; -}; +struct condition; #define CONDITION_INITIALIZER(condition) \ { SPINLOCK_INITIALIZER, NULL, LIST_INITIALIZER((condition).waiters) } -- cgit v1.2.3