aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/processing/jobs/callback_job.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/processing/jobs/callback_job.h')
-rw-r--r--src/charon/processing/jobs/callback_job.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charon/processing/jobs/callback_job.h b/src/charon/processing/jobs/callback_job.h
index 5435bc09c..62da1edd1 100644
--- a/src/charon/processing/jobs/callback_job.h
+++ b/src/charon/processing/jobs/callback_job.h
@@ -90,8 +90,9 @@ struct callback_job_t {
job_t job_interface;
/**
- * Cancel the jobs thread and wait for its termination.
- */
+ * Cancel the job's thread and wait for its termination. This only works
+ * reliably for jobs that always use JOB_REQUEUE_FAIR or JOB_REQUEUE_DIRECT,
+ * otherwise the job may already be destroyed when cancel is called. */
void (*cancel)(callback_job_t *this);
};