Commit 861191db authored by Pekka Pessi's avatar Pekka Pessi

su_port.c, su_base_port.c, su_pthread_port.c: fixed klocworks issues.

darcs-hash:20080520173050-65a35-09873029242895ec052154c710faacf3261955ac.gz
parent 1934393c
......@@ -560,11 +560,18 @@ static void su_base_port_clone_break(su_root_magic_t *m,
su_root_destroy(task->sut_root);
}
/**Wait for the clone to exit.
* @internal
*
* Called by su_port_wait() and su_clone_wait()
*/
void su_base_port_wait(su_clone_r rclone)
{
su_port_t *self;
su_root_t *root_to_wait;
assert(*rclone);
self = su_msg_from(rclone)->sut_port;
assert(self == su_msg_to(rclone)->sut_port);
root_to_wait = su_msg_to(rclone)->sut_root;
......
......@@ -427,10 +427,18 @@ int su_clone_resume(su_clone_r rclone)
#endif
}
/** Wait for clone to exit.
*
* @internal
*
* Called by su_clone_wait().
*/
void su_port_wait(su_clone_r rclone)
{
su_port_t *cloneport;
assert(*rclone);
cloneport = su_msg_to(rclone)->sut_port;
cloneport->sup_vtable->su_port_wait(rclone);
}
......
......@@ -388,6 +388,8 @@ static void su_pthread_port_clone_break(su_root_magic_t *m,
/** Wait for the pthread clone to exit.
* @internal
*
* Called by su_port_wait() and su_clone_wait().
*/
void su_pthread_port_wait(su_clone_r rclone)
{
......@@ -395,6 +397,8 @@ void su_pthread_port_wait(su_clone_r rclone)
struct su_pthread_port_waiting_parent mom[1];
pthread_t tid;
assert(*rclone);
clone = su_msg_to(rclone)->sut_port;
parent = su_msg_from(rclone)->sut_port;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment