summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mscp.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/mscp.h b/include/mscp.h
index 92a59ae..c210881 100644
--- a/include/mscp.h
+++ b/include/mscp.h
@@ -208,16 +208,21 @@ int mscp_join(struct mscp *m);
void mscp_get_stats(struct mscp *m, struct mscp_stats *s);
/**
- * @brief Cleanup the mscp instance. Before calling mscp_cleanup(), must
- * call mscp_join(). After mscp_cleanup() called, the mscp instance
- * can restart from mscp_connect().
+ * @brief Cleanup the mscp instance. Before calling mscp_cleanup(),
+ * must call mscp_join(). After mscp_cleanup() called, the mscp
+ * instance can restart from mscp_connect(). Note that do not call
+ * mscp_cleanup() before callign mscp_join(). It causes crash (ToDo:
+ * check status of copy threads and return error when they are
+ * running).
*
* @param m mscp instance.
*/
void mscp_cleanup(struct mscp *m);
/**
- * @brief Release the mscp instance.
+ * @brief Release the mscp instance. Note that do not call *
+ mscp_free() before calling mscp_join(). It causes crash (ToDo: check
+ * status of copy threads and return error when they are running).
*
* @param m mscp instance.
*/