-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Some lint fixes for the chain library CI. * Cleanup - Cleaned up mutex usage in await to eliminate a flag, and directly protect the element being modified. - Fixed a memory leak in Windows if scheduling work fails in the default executor. - Made package_task<> move-only which simplifies promise by removing promise count. - Removed unused reduction_failed error code. - Added a reduction test for future<future<void>>
- Loading branch information
1 parent
bc092d5
commit facbd55
Showing
5 changed files
with
61 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
Copyright 2015 Adobe | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
|
||
/**************************************************************************************************/ | ||
|
||
#include <stlab/concurrency/future.hpp> | ||
|
||
#include <boost/test/unit_test.hpp> | ||
|
||
#include <stlab/concurrency/utility.hpp> | ||
|
||
using namespace stlab; | ||
|
||
BOOST_AUTO_TEST_SUITE(reduction_tests) | ||
|
||
BOOST_AUTO_TEST_CASE(void_void_reduction) { | ||
auto f = make_ready_future(immediate_executor) | | ||
[] { return make_ready_future(immediate_executor); }; | ||
BOOST_REQUIRE(!f.exception()); | ||
} | ||
|
||
BOOST_AUTO_TEST_SUITE_END() |