提交 5253e1b3 authored 作者: Michael Jerris's avatar Michael Jerris

Tue May 20 13:30:50 EDT 2008 Pekka.Pessi@nokia.com

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


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8622 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 08a36d09
Sun May 25 11:09:54 EDT 2008
Sun May 25 11:10:29 EDT 2008
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论