diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-06-05 16:03:22 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-06-05 16:03:22 +0200 |
| commit | bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8 (patch) | |
| tree | 00f6633878b21dda6cad1177d5619a501b4ac0a4 /CHANGES | |
| parent | f73702bcf4372a149b8b01a512c0e086b1e679e2 (diff) | |
| download | lanes-bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8.tar.gz lanes-bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8.tar.bz2 lanes-bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8.zip | |
Change lane:join() return values
* when no error is raised in the lane, lane:join() now precedes the lane returned values with true
* lane body is no longer forced to return something when used with join()
* adjusted all relevant unit tests accordingly
Diffstat (limited to 'CHANGES')
| -rw-r--r-- | CHANGES | 8 |
1 files changed, 3 insertions, 5 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | CHANGES: | 1 | CHANGES: |
| 2 | 2 | ||
| 3 | CHANGE 2: BGe 27-Nov-24 | 3 | CHANGE 2: BGe 05-Jun-25 |
| 4 | * Internal changes | 4 | * Internal changes |
| 5 | - Lanes is implemented in C++20: thread, condition_variable, mutex, string_view, variant, lambdas, templates, and more! | 5 | - Lanes is implemented in C++20: thread, condition_variable, mutex, string_view, variant, lambdas, templates, and more! |
| 6 | - Almost all platform-specific code is gone (only a small bit for thread priority and affinity remains). | 6 | - Almost all platform-specific code is gone (only a small bit for thread priority and affinity remains). |
| @@ -37,11 +37,9 @@ CHANGE 2: BGe 27-Nov-24 | |||
| 37 | - name added. Can be used to set the name early (before the lane body calls lane_threadname()). | 37 | - name added. Can be used to set the name early (before the lane body calls lane_threadname()). |
| 38 | - New generator lanes.coro() to start a lane as a coroutine. | 38 | - New generator lanes.coro() to start a lane as a coroutine. |
| 39 | - New __close metamethod that calls join(). | 39 | - New __close metamethod that calls join(). |
| 40 | - lane:join() | 40 | - lane:join() returns nil, error in case of problem, else returns true followed by the lane body return values. |
| 41 | - Returns nil, error in case of problem. | ||
| 42 | - Forces lane function body must return a non-nil first value on success because of the above. | ||
| 43 | - lane:get_debug_threadname() renamed get_threadname(). | 41 | - lane:get_debug_threadname() renamed get_threadname(). |
| 44 | - cancel_test() returns "soft"/"hard" instead of true when a cancellation request is active | 42 | - cancel_test() returns "soft"/"hard" instead of true when a cancellation request is active. |
| 45 | - Lindas: | 43 | - Lindas: |
| 46 | - lanes.linda() | 44 | - lanes.linda() |
| 47 | - Arguments can be provided in any order. | 45 | - Arguments can be provided in any order. |
