Skip to content

Commit 24beb2e

Browse files
committed
move parallel_scheduler into namespace STDEXEC
1 parent 9c66987 commit 24beb2e

15 files changed

+945
-872
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ set_target_properties(system_context PROPERTIES
414414
CXX_STANDARD_REQUIRED ON
415415
CXX_EXTENSIONS OFF)
416416
target_compile_options(system_context PUBLIC
417-
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:__cplusplus /Zc:preprocessor>
417+
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:__cplusplus /Zc:preprocessor /Zc:externConstexpr>
418418
)
419419
add_library(STDEXEC::system_context ALIAS system_context)
420420
target_link_libraries(system_context PUBLIC stdexec)

include/exec/__detail/__system_context_replaceability_api.hpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <memory>
2525

2626
namespace exec::system_context_replaceability {
27-
using STDEXEC::system_context_replaceability::__parallel_scheduler_backend_factory;
27+
using STDEXEC::system_context_replaceability::__parallel_scheduler_backend_factory_t;
2828

2929
/// Interface for the parallel scheduler backend.
3030
using parallel_scheduler_backend [[deprecated(
@@ -40,15 +40,20 @@ namespace exec::system_context_replaceability {
4040
return STDEXEC::system_context_replaceability::query_parallel_scheduler_backend();
4141
}
4242

43+
STDEXEC_PRAGMA_PUSH()
44+
STDEXEC_PRAGMA_IGNORE_GNU("-Wdeprecated-declarations")
45+
STDEXEC_PRAGMA_IGNORE_MSVC(4996) // warning C4996: 'function': was declared deprecated
46+
STDEXEC_PRAGMA_IGNORE_EDG(deprecated_entity)
4347
/// Set a factory for the parallel scheduler backend.
4448
/// Can be used to replace the parallel scheduler at runtime.
4549
/// Out of spec.
4650
[[deprecated(
4751
"Use STDEXEC::system_context_replaceability::set_parallel_scheduler_backend instead.")]]
48-
inline auto set_parallel_scheduler_backend(__parallel_scheduler_backend_factory __new_factory)
49-
-> __parallel_scheduler_backend_factory {
52+
inline auto set_parallel_scheduler_backend(__parallel_scheduler_backend_factory_t __new_factory)
53+
-> __parallel_scheduler_backend_factory_t {
5054
return STDEXEC::system_context_replaceability::set_parallel_scheduler_backend(__new_factory);
5155
}
56+
STDEXEC_PRAGMA_POP()
5257

5358
/// Interface for completing a sender operation. Backend will call frontend though this interface
5459
/// for completing the `schedule` and `schedule_bulk` operations.

0 commit comments

Comments
 (0)