diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html index 63f8880a7..fa9727aff 100644 --- a/documentation/RELEASE_NOTES.html +++ b/documentation/RELEASE_NOTES.html @@ -26,6 +26,28 @@ release.

--> +

Add epicsThreadCreateOpt() and epicsThreadMustJoin()

+ +

epicsThreadCreateOpt() is an alternative to epicsThreadCreate() which +passes some arguments via a structure (struct epicsThreadOpts). +This epicsThreadOpts* may be NULL to use target specific +defaults. Caller wishing to provide thread options should first call +epicsThreadOptsDefaults() to fill in the defaults.

+ +
+void startitup(void) {
+    epicsThreadOpts opts;
+    epicsThreadOptsDefaults(&opts);
+    opts.priority = epicsThreadPriorityMedium;
+
+    ... = epicsThreadCreateOpt("my thread", &threadMain, NULL, &opts);
+}
+
+ +

If the new epicsThreadOpts::joinable option flag is set (not the default), +then epicsThreadMustJoin() needs to be called to free up thread resources. +This function will block until the thread main function has returned.

+

Launchpad Bugs

The list of tracked bugs fixed in this release can be found on the