Skip to content

Releases: stlab/libraries

2.0.0a2

08 Feb 01:06
c59cfac
Compare
Choose a tag to compare
2.0.0a2 Pre-release
Pre-release

The documentation is now built with Hyde 2.0 but has not yet been updated to finalize the release.

What's Changed

v2.0.0a1

26 Oct 00:53
12fc5a5
Compare
Choose a tag to compare
v2.0.0a1 Pre-release
Pre-release

This is a draft of version 2.0.0. Bumping the major version number is due to the breaking changes mentioned below. I'm in the process of updating the documentation to use Hyde 2.0 and moving to use GitHub Actions to build the Jekyll pages. The final release will be done when those tasks are completed. This release is for those who "just need the code".

Breaking Changes

  • C++17 or later is now required. The was done to make the executors and task<> noexcept aware. Executors now require the tasks being passed to them are noexcept. package<>() can be used to create noexcept packaged_task<>s. The task<> interface can now require that a captured task is noexcept. For example, task<int(double) noexcept> will accept a type invocable with a double, where the result is convertible to int, and is declared noexcept. This is statically checked. If noexceptis ommited, the task will except either a function with a matching signature, noexcept or not.
  • As part of moving to C++17, the ability to configure the library to use boost::optional and boost::variant has been removed.

Bug fixes and other changes are listed below.

What's Changed

New Contributors

Full Changelog: v1.7.1...v2.0.0a1

v1.7.1

24 Sep 14:12
Compare
Choose a tag to compare

Patch release that just fixes some missing files in a CMakeLists.txt file

1.7.0

06 Sep 22:29
8137f27
Compare
Choose a tag to compare

This release was created to address a number of issues.

  • Building the library now requires a CMake step to generate a configuration file. Prior versions of the library were self-configuring but that was causing issues when headers were included in different compilation units compiled with different options.
  • When using default_executor a call to pre_exit() is required prior to exiting main or invoking std::exit(). It is not necessary if using std::quick_exit(). This allows the executor to shut down so canceled and detached tasks do not run concurrently with exit.
  • blocking_get() and associated functions have been renamed await()
  • A new operation invoke_waiting() was added to hint the portable default_executor when a task is waiting for some condition.
  • The await() does not attempt to steal tasks from the portable default_executor and instead will spin up additional threads (to a limit) to avoid deadlocking.

See more details in changes.md.

Patch release 1.6.2

25 Mar 19:05
0a7232a
Compare
Choose a tag to compare
  • Fixed issues
    • [#371]:(#371 include in concurrency/utility.hpp
    • The _hold for detach was being done on the executor instead of the continuation. The result was a (silenced) broken exception getting thrown if detach() is called on a ready exception.
      This would trigger an exception which is caught internally in a packaged task and dropped.
     stlab::make_ready_future(stlab::immediate_executor).detach();
    • Fixed an issue with the serial queue using a "temporary" executor which was copied into the future shared state.
    • Added stealing to blocking_get
    • Also cleaned up blocking_get implementation.
    • blocking_get_for() added
    • Fix for make_exceptional_future and improvements blocking_get_for added
    • deprecated blocking_get() with timeout
    • Fixing bugs and naming our threads
    • Fixed issue with backoff
    • min() duration on a clock apparently is not a minimum length duration as documented, but is a negative duration... instead we us a single tick.
    • Update utility.hpp

1.6.1

11 Mar 20:12
a339365
Compare
Choose a tag to compare
  • Simplified the portable default executor to use a priority queue instead of separate queues for each priority
  • Simplified logic for blocking_get()
  • Added support for blocking_get() to steal tasks when using the portable task system with exponential backoff
  • Fixed a bug where setting the exception on a promise does not resolve the promise, and so subsequent destruction of the promise would change the exception to a broken_promise.
  • Fixed two places where objects captured by lambdas were subsequently moved, but the lambdas were not marked as mutable. This meant that you could not move a future passed to recover().
  • Disabled the task() template constructor in the case where the passed function was a task so that it doesn't match the copy constructor. Previously if you copied a task it would compile, but infinitely recurse when executed. Now copying a task will not compile.
  • Fixed an issue where the task invoke arguments where always getting declared as rvalues (I think someone tried to make them universal references) - added a comment to avoid the mistake in the future.
  • Made the top-level task invoke actually use universal references and perfect forwarding.
  • Reduced the size of task for small object optimization (now will usually be size of 8 pointers, with 6 pointers of space for the small object)
  • Fixed tasks for objects that require more than maximum alignment.
  • Lifted the invoke vtable entry for task into the local task, filling an otherwise empty memory slot (on most architectures).
  • Removed the move() on the invoke calls in task, these were intended to make all tasks single execution, but many are not, and so this is a slightly dangerous and, as far as I know, unused optimization. If needed it could come back as a new virtual (rvalue invoke) call and only be used with the task actually is an rvalue.

Minor feature release 1.6.0

09 Feb 22:10
8bec449
Compare
Choose a tag to compare
  • Backport the library to support C++14 and later
  • Better auto-configuration - no need for compiler flags.
  • Supported for threaded wasm using the portable tasking system (auto-configured).

Patch release 1.5.6

01 Feb 20:05
c9d5de0
Compare
Choose a tag to compare
  • Fixed issues
    • [#352]:(#352) Non portable 'warning' preprocessor command
    • [#354]:(#354) Visual Studio 2017 fails to compiler async with std::function as argument

Patch release 1.5.5

30 Jan 17:38
31f2c71
Compare
Choose a tag to compare
Merge pull request #349 from FelixPetriconi/develop

Prepare 1.5.5 release

Patch Release 1.5.4

08 Oct 09:23
51e9367
Compare
Choose a tag to compare
  • Fixed issues
    • #317: when_all(range) and when_any(range) must not be used with an immediate_executor