From 57d2b143e9ab2a547da14b74fbb4c85ec347da15 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 23 Jun 2019 15:31:35 -0700 Subject: [PATCH] update release notes --- documentation/RELEASE_NOTES.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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