Skip to content

Commit

Permalink
renamed execution26 to execution
Browse files Browse the repository at this point in the history
  • Loading branch information
dietmarkuehl committed Jan 21, 2025
1 parent d01727f commit acfb7e9
Show file tree
Hide file tree
Showing 324 changed files with 5,127 additions and 4,981 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Checks:
-*-use-equals-default,
-*-braces-around-statements
'
HeaderFilterRegex: '.*/execution26/(include|src|example|tests)/.*\.(hpp)$'
HeaderFilterRegex: '.*/execution/(include|src|example|tests)/.*\.(hpp)$'
WarningsAsErrors: 'clang*'
FormatStyle: file

Expand Down
22 changes: 11 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

cmake_minimum_required(VERSION 3.25...3.31)

project(beman_execution26 VERSION 0.0.1 LANGUAGES CXX)
project(beman_execution VERSION 0.0.1 LANGUAGES CXX)

if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "In-source builds are not allowed!")
endif()

set(TARGET_NAME execution26)
set(TARGET_NAME execution)
set(TARGET_NAMESPACE beman)
set(TARGET_PREFIX ${TARGET_NAMESPACE}.${TARGET_NAME})
set(TARGET_LIBRARY ${PROJECT_NAME})
Expand All @@ -20,27 +20,27 @@ set(TARGET_PACKAGE_NAME ${PROJECT_NAME}-config)
set(TARGETS_EXPORT_NAME ${PROJECT_NAME}-targets)

option(
BEMAN_EXECUTION26_ENABLE_TESTING
BEMAN_EXECUTION_ENABLE_TESTING
"Enable building tests and test infrastructure. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

option(
BEMAN_EXECUTION26_BUILD_EXAMPLES
BEMAN_EXECUTION_BUILD_EXAMPLES
"Enable building examples. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

option(
BEMAN_EXECUTION26_ENABLE_INSTALL
BEMAN_EXECUTION_ENABLE_INSTALL
"Install the project components. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

include(GNUInstallDirs)
set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})

if(NOT BEMAN_EXECUTION26_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
if(NOT BEMAN_EXECUTION_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
include(FetchContent)

# Add project_options from https://github.com/aminya/project_options
Expand Down Expand Up @@ -89,19 +89,19 @@ if(NOT BEMAN_EXECUTION26_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
)
endif()

add_subdirectory(src/beman/execution26)
add_subdirectory(src/beman/execution)

if(BEMAN_EXECUTION26_ENABLE_TESTING)
if(BEMAN_EXECUTION_ENABLE_TESTING)
enable_testing()

add_subdirectory(tests/beman/execution26)
add_subdirectory(tests/beman/execution)
endif()

if(BEMAN_EXECUTION26_BUILD_EXAMPLES)
if(BEMAN_EXECUTION_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

if(NOT BEMAN_EXECUTION26_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
if(NOT BEMAN_EXECUTION_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
return()
endif()

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SANITIZER ?= default
SOURCEDIR = $(CURDIR)
BUILDROOT = build
BUILD = $(BUILDROOT)/$(SANITIZER)
EXAMPLE = beman.execution26.examples.stop_token
EXAMPLE = beman.execution.examples.stop_token
CMAKE_CXX_COMPILER=$(COMPILER)

ifeq ($(SANITIZER),release)
Expand Down Expand Up @@ -101,7 +101,7 @@ ce:
@mkdir -p $(BUILD)
bin/mk-compiler-explorer.py $(BUILD)

SOURCE_CMAKELISTS = src/beman/execution26/CMakeLists.txt
SOURCE_CMAKELISTS = src/beman/execution/CMakeLists.txt
update:
bin/update-cmake-headers.py $(SOURCE_CMAKELISTS)

Expand Down Expand Up @@ -131,7 +131,7 @@ todo:
bin/mk-todo.py

unstage:
git restore --staged tests/beman/execution26/CMakeLists.txt
git restore --staged tests/beman/execution/CMakeLists.txt

.PHONY: clean-doc
clean-doc:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-->
# beman.execution26: Building Block For Asynchronous Programs
# beman.execution: Building Block For Asynchronous Programs

<img src="https://github.com/bemanproject/beman/blob/main/images/logos/beman_logo-beman_library_under_development.png" style="width:5%; height:auto;">

`beman.execution26` provides the basic vocabulary for asynchronous
`beman.execution` provides the basic vocabulary for asynchronous
programming as well as important algorithms implemented in terms
of this vocabulary. The key entities of the vocabulary are:

Expand Down Expand Up @@ -42,7 +42,7 @@ e.g.:
## Help Welcome!

There are plenty of things which need to be done. Some of these
are listed in the [issues section](https://github.com/bemanproject/execution26/issues).
are listed in the [issues section](https://github.com/bemanproject/execution/issues).
Other contributions are, of course, also welcome. Aside from contributing
code the project welcomes reports on usage experience, code reviews, defect
reports, features requests, etc. There are plenty contribution opportunities.
Expand All @@ -55,7 +55,7 @@ for contributing to the library.

| Library | Linux | MacOS | Windows |
| ------- | ----- | ----- | ------- |
| build | ![Linux build status](https://github.com/bemanproject/execution26/actions/workflows/linux.yml/badge.svg) | ![MacOS build status](https://github.com/bemanproject/execution26/actions/workflows/macos.yml/badge.svg) | ![Window build status](https://github.com/bemanproject/execution26/actions/workflows/windows.yml/badge.svg) |
| build | ![Linux build status](https://github.com/bemanproject/execution/actions/workflows/linux.yml/badge.svg) | ![MacOS build status](https://github.com/bemanproject/execution/actions/workflows/macos.yml/badge.svg) | ![Window build status](https://github.com/bemanproject/execution/actions/workflows/windows.yml/badge.svg) |

The following instructions build the library and the examples:

Expand Down
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "beman::execution26"
PROJECT_NAME = "beman::execution"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down
8 changes: 4 additions & 4 deletions docs/intro-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ work.

The componentes for `std::execution` are declared in the header
`<execution>`. This particular implementation implements the
cmponents in namespace `beman::execution26` declared in the header
`<beman/execution26/execution.hpp>`:
cmponents in namespace `beman::execution` declared in the header
`<beman/execution/execution.hpp>`:

```c++
#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <iostream>
#include <string>
#include <tuple>

namespace ex = ::beman::execution26;
namespace ex = ::beman::execution;
using namespace std::string_literals;
```
Expand Down
4 changes: 2 additions & 2 deletions examples/allocator.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <iostream>
#include <string>
#include <memory>
#include <memory_resource>
#include <span>
#include <vector>

namespace ex = beman::execution26;
namespace ex = beman::execution;

namespace {
template <std::size_t Size>
Expand Down
4 changes: 2 additions & 2 deletions examples/doc-just.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// examples/doc-just.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <cassert>
#include <string>
namespace ex = beman::execution26;
namespace ex = beman::execution;
using namespace std::string_literals;

int main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/doc-just_error.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// examples/doc-just_error.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <system_error>
#include <cassert>
namespace ex = beman::execution26;
namespace ex = beman::execution;

namespace {
void use(auto&&...) {}
Expand Down
4 changes: 2 additions & 2 deletions examples/doc-just_stopped.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// examples/doc-just_stopped.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <system_error>
#include <cassert>
#include <iostream> //-dk:TODO remove
namespace ex = beman::execution26;
namespace ex = beman::execution;

namespace {
void use(auto&&...) {}
Expand Down
4 changes: 2 additions & 2 deletions examples/intro-1-hello-world.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// examples/intro-1-hello-world.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <iostream>
#include <string>
#include <tuple>

namespace ex = ::beman::execution26;
namespace ex = ::beman::execution;
using namespace std::string_literals;

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

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include "intro-timer.hpp"
#include <chrono>
#include <iostream>
#include <string>
#include <tuple>

namespace ex = ::beman::execution26;
namespace ex = ::beman::execution;
using namespace std::string_literals;
using namespace std::chrono_literals;

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

#include <beman/execution26/execution.hpp>
#include <beman/execution26/detail/suppress_push.hpp>
#include <beman/execution/execution.hpp>
#include <beman/execution/detail/suppress_push.hpp>
#include <expected>
#include <iostream>
#include <string>
#include <tuple>

namespace ex = ::beman::execution26;
namespace ex = ::beman::execution;
using namespace std::string_literals;

enum class success { one };
Expand Down
4 changes: 2 additions & 2 deletions examples/intro-timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#ifndef INCLUDED_EXAMPLES_INTRO_TIMER
#define INCLUDED_EXAMPLES_INTRO_TIMER

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <queue>
#include <thread>
#include <tuple>

// ----------------------------------------------------------------------------

namespace intro {
namespace ex = beman::execution26;
namespace ex = beman::execution;
struct timer;
} // namespace intro

Expand Down
4 changes: 2 additions & 2 deletions examples/just_stopped.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <beman/execution26/execution.hpp>
namespace ex = beman::execution26;
#include <beman/execution/execution.hpp>
namespace ex = beman::execution;

struct receiver {
using receiver_concept = ex::receiver_t;
Expand Down
4 changes: 2 additions & 2 deletions examples/playground.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// examples/playground.cpp -*-C++-*-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <iostream>
#include <string>
#include <tuple>

namespace ex = ::beman::execution26;
namespace ex = ::beman::execution;

// ----------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions examples/sender-demo.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <beman/execution26/execution.hpp>
#include <beman/execution/execution.hpp>
#include <type_traits>
#include <string>
#include <memory_resource>
#include <utility>
#include <iostream>

namespace ex = beman::execution26;
namespace ex = beman::execution;

template <typename Receiver>
struct just_op_state {
Expand Down
4 changes: 2 additions & 2 deletions examples/stop_token.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// examples/stop_token.cpp
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <beman/execution26/stop_token.hpp>
#include <beman/execution/stop_token.hpp>
#include <condition_variable>
#include <iostream>
#include <exception>
#include <latch>
#include <mutex>
#include <thread>

namespace exec = beman::execution26;
namespace exec = beman::execution;

// The stop token classes are used to cancel work. Each
// stop token may be connected to a stop source on which
Expand Down
6 changes: 3 additions & 3 deletions examples/stopping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
// which gets started in a thread. To stop this thread
// the corresponding stop source is requested to stop.

#include <beman/execution26/execution.hpp>
#include <beman/execution26/stop_token.hpp>
#include <beman/execution/execution.hpp>
#include <beman/execution/stop_token.hpp>
#include <chrono>
#include <iostream>
#include <thread>
#include <cassert>

using namespace std::chrono;
namespace ex = beman::execution26;
namespace ex = beman::execution;

// ----------------------------------------------------------------------------

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

#include <beman/execution26/execution.hpp>
#include <beman/execution26/stop_token.hpp>
#include <beman/execution/execution.hpp>
#include <beman/execution/stop_token.hpp>
#include <iostream>
#include <optional>
#include <type_traits>
#include <utility>
#include <cassert>

namespace ex = beman::execution26;
namespace ex = beman::execution;

// ----------------------------------------------------------------------------

Expand Down
Loading

0 comments on commit acfb7e9

Please sign in to comment.