Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-->

<!-- markdownlint-disable line-length -->
[![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#the-beman-library-maturity-model)![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp26.svg)[![Coverage](https://coveralls.io/repos/github/bemanproject/task/badge.svg?branch=main)](https://coveralls.io/github/bemanproject/task?branch=main)[![Compiler Explorer Example](https://img.shields.io/badge/Try%20it%20on%20Compiler%20Explorer-grey?logo=compilerexplorer&logoColor=67c52a)](https://godbolt.org/z/e1sjsT46r)
[![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#the-beman-library-maturity-model)![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp26.svg)[![Coverage](https://coveralls.io/repos/github/bemanproject/task/badge.svg?branch=main)](https://coveralls.io/github/bemanproject/task?branch=main)[![Compiler Explorer Example](https://img.shields.io/badge/Try%20it%20on%20Compiler%20Explorer-grey?logo=compilerexplorer&logoColor=67c52a)](https://godbolt.org/z/anYY59nYd)
<!-- markdownlint-restore -->

`beman::execution::task<T, Context>` is a class template which
Expand All @@ -29,8 +29,8 @@ using sender/receiver facilities to implement version of `hello,
world`:

```cpp
#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>

namespace ex = beman::execution;
Expand Down
4 changes: 2 additions & 2 deletions examples/affinity.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/affinity.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>
#include "demo_thread_loop.hpp"
#include <iostream>
#include <cassert>
Expand Down
4 changes: 2 additions & 2 deletions examples/aggregate_return.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/aggregate_return.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/alloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <cassert>
#include <cstdlib>
#include <memory_resource>
#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/async_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <mutex>
#include <string>
#include <condition_variable>
#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/co_await_result.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/co_await_result.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>
#include <cassert>

Expand Down
4 changes: 2 additions & 2 deletions examples/container.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/container.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>
#include <vector>
#include <cassert>
Expand Down
6 changes: 3 additions & 3 deletions examples/cppnow_affinity.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// examples/cppnow_affinity.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/execution/stop_token.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <beman/stop_token.hpp>
#include "demo_thread_loop.hpp"
#include <condition_variable>
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_allocator.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_alloctor.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <memory>
#include <memory_resource>

Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_basic.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_basic.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <coroutine>
#include <iostream>

Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_cancel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// ----------------------------------------------------------------------------

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_errors.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_errors.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <expected>
#include <iostream>
#include <concepts>
Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_query.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_query.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>

namespace ex = beman::execution;
Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_result_types.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_result_types.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <tuple>

namespace ex = beman::execution;
Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_return.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_return.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>

namespace ex = beman::execution;
Expand Down
6 changes: 3 additions & 3 deletions examples/cppnow_stop_token.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// examples/cppnow_stop_token.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/execution/stop_token.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <beman/stop_token.hpp>
#include <chrono>
#include <iostream>
#include <thread>
Expand Down
4 changes: 2 additions & 2 deletions examples/cppnow_with_error.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/cppnow_with_error.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>
#include <cassert>

Expand Down
4 changes: 2 additions & 2 deletions examples/customize.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/customize.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>
#include <iostream>
#include <utility>
#include <cassert>
Expand Down
4 changes: 2 additions & 2 deletions examples/dangling_references.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/dangling_references.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>
#include <utility>
#include <functional>
#include <string>
Expand Down
6 changes: 3 additions & 3 deletions examples/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef _MSC_VER
#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/net/net.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <beman/net.hpp>
Comment thread
dietmarkuehl marked this conversation as resolved.
#include <chrono>
#include <string>
#include <thread>
Expand Down
4 changes: 2 additions & 2 deletions examples/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <iostream>
#include <system_error>
#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/escaped_exception.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/escaped_exception.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>
#include <exception>

Expand Down
4 changes: 2 additions & 2 deletions examples/friendly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <coroutine>
#include <exception>
#include <system_error>
#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/into_optional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <optional>
#include <tuple>
#include <system_error>
#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
4 changes: 2 additions & 2 deletions examples/loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <iostream>
#include <string>
#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>
#include <iostream>

namespace ex = beman::execution;
Expand Down
4 changes: 2 additions & 2 deletions examples/query.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/query.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>
#include <concepts>
#include <iostream>
#include <cassert>
Expand Down
4 changes: 2 additions & 2 deletions examples/result_example.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/result_example.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <cassert>

namespace ex = beman::execution;
Expand Down
4 changes: 2 additions & 2 deletions examples/rvalue_task.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/rvalue_task.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/task.hpp>

namespace ex = beman::execution;

Expand Down
6 changes: 3 additions & 3 deletions examples/stop.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// examples/stop.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution/execution.hpp>
#include <beman/execution/stop_token.hpp>
#include <beman/task/task.hpp>
#include <beman/execution.hpp>
#include <beman/stop_token.hpp>
#include <beman/task.hpp>
#include <iostream>
#include <chrono>
#include <thread>
Expand Down
4 changes: 2 additions & 2 deletions examples/task_scheduler.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// examples/task_scheduler.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/task/task.hpp>
#include <beman/execution/execution.hpp>
#include <beman/task.hpp>
#include <beman/execution.hpp>
#include <iostream>
#include <cstdlib>

Expand Down
9 changes: 9 additions & 0 deletions include/beman/task.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// include/beman/task.hpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef INCLUDED_INCLUDE_BEMAN_TASK
#define INCLUDED_INCLUDE_BEMAN_TASK

#include <beman/task/task.hpp>

#endif
2 changes: 1 addition & 1 deletion include/beman/task/detail/allocator_of.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace beman::task::detail {
/*!
* \brief Utility to get an allocator type from a context
* \headerfile beman/task/task.hpp <beman/task/task.hpp>
* \headerfile beman/task.hpp <beman/task.hpp>
* \internal
*/
template <typename>
Expand Down
2 changes: 1 addition & 1 deletion include/beman/task/detail/allocator_support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace beman::task::detail {
/*!
* \brief Utility adding allocator support to type by embedding the allocator
* \headerfile beman/task/task.hpp <beman/task/task.hpp>
* \headerfile beman/task.hpp <beman/task.hpp>
*
* To add allocator support using this class just publicly inherit from
* allocator_support<Allocator, YourPromiseType>. This utility is probably
Expand Down
2 changes: 1 addition & 1 deletion include/beman/task/detail/find_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace beman::task::detail {
/*!
* \brief Utility locating an allocator_arg/allocator pair
* \headerfile beman/task/task.hpp <beman/task/task.hpp>
* \headerfile beman/task.hpp <beman/task.hpp>
* \internal
*/
template <typename Allocator>
Expand Down
2 changes: 1 addition & 1 deletion include/beman/task/detail/poly.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace beman::task::detail {
/*!
* \brief Utility providing small object optimization and type erasure.
* \headerfile beman/task/task.hpp <beman/task/task.hpp>
* \headerfile beman/task.hpp <beman/task.hpp>
* \internal
*/
template <typename Base, std::size_t Size = 4u * sizeof(void*)>
Expand Down
Loading
Loading