From 24e86f58d87d48864e6ae33f1953124e467753ea Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 7 May 2023 21:05:05 +0900 Subject: mscp: maintain mscp_thread structs in list Instead of m->threads array, struct mscp_thread instanes are maintained in m->thread_list. This enables stable counter access via mscp_get_stats(). --- include/mscp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mscp.h b/include/mscp.h index 3e8f80f..965af0b 100644 --- a/include/mscp.h +++ b/include/mscp.h @@ -184,7 +184,7 @@ int mscp_scan_join(struct mscp *m); * * @param m mscp instance. * - * @return 0 on success, < 0 if an error occured. + * @return number of threads on success, < 0 if an error occured. * mscp_get_error() can be used to retrieve error message. * * @see mscp_join() -- cgit v1.2.3