From 15a45e1d7b2617a3df4147c950aa5467e167bd2c Mon Sep 17 00:00:00 2001 From: Timothy Prepscius Date: Fri, 6 Mar 2026 09:28:09 -0500 Subject: [PATCH] corrects license header lines --- .gitignore | 1 + Core_Future.xcodeproj/project.pbxproj | 72 ++++++------------- LICENSE | 26 +++++++ ReadMe.md | 11 +++ tests/main.cpp | 4 +- tjp/core/future/Future.h | 4 +- tjp/core/future/Future.hpp | 4 +- tjp/core/future/FutureChain.h | 4 +- tjp/core/future/FutureChain.hpp | 4 +- tjp/core/future/FutureErase.hpp | 4 +- tjp/core/future/FutureEvent.hpp | 4 +- tjp/core/future/FutureResult.h | 4 +- tjp/core/future/FutureResult.hpp | 4 +- tjp/core/future/FutureResult_v1.hpp | 4 +- tjp/core/future/FutureResult_v2.hpp | 4 +- tjp/core/future/FutureStrong.hpp | 4 +- tjp/core/future/Futures.cpp | 4 +- tjp/core/future/Futures.h | 4 +- tjp/core/future/Futures.hpp | 4 +- tjp/core/future/PromiseLocked.h | 4 +- tjp/core/future/PromiseLocked.hpp | 4 +- tjp/core/future/PromiseOfFutures.h | 4 +- tjp/core/future/PromiseOfFutures.hpp | 4 +- tjp/core/future/WeakFuture.hpp | 4 +- tjp/core/future/WorkPromise.h | 4 +- tjp/core/future/WorkPromise.hpp | 4 +- tjp/core/future/_tests/FutureChain.cpp | 4 +- tjp/core/future/_tests/FutureErase.cpp | 4 +- tjp/core/future/_tests/FutureResult.cpp | 4 +- tjp/core/future/_tests/PromiseLocked.cpp | 4 +- tjp/core/future/_tests/PromiseOfFutures.cpp | 4 +- tjp/core/future/_tests/after.cpp | 4 +- tjp/core/future/after.hpp | 4 +- tjp/core/future/after_using.hpp | 4 +- tjp/core/future/boost/Future.h | 23 ------ tjp/core/future/custom/Future.cpp | 4 +- tjp/core/future/custom/Future.h | 4 +- tjp/core/future/custom/Future.hpp | 4 +- tjp/core/future/custom/Future_.h | 4 +- tjp/core/future/custom/Future_.hpp | 4 +- .../future/custom/Future_Requirements.hpp | 4 +- tjp/core/future/custom/Future_void.h | 4 +- tjp/core/future/custom/Future_void.hpp | 4 +- tjp/core/future/custom/_tests/Future.cpp | 4 +- tjp/core/future/folly/Future.h | 19 ----- tjp/core/future/future_discard_exception.hpp | 4 +- tjp/core/future/future_handle_exception.hpp | 4 +- tjp/core/future/future_is_exception.hpp | 4 +- tjp/core/future/future_on_exception.hpp | 4 +- tjp/core/future/future_on_exception_value.hpp | 4 +- tjp/core/future/future_on_exception_what.hpp | 4 +- tjp/core/future/future_success.hpp | 4 +- tjp/core/future/liblw/Future.h | 19 ----- tjp/core/future/weak_future_consume.hpp | 4 +- 54 files changed, 202 insertions(+), 157 deletions(-) create mode 100755 LICENSE create mode 100755 ReadMe.md delete mode 100755 tjp/core/future/boost/Future.h delete mode 100755 tjp/core/future/folly/Future.h delete mode 100755 tjp/core/future/liblw/Future.h diff --git a/.gitignore b/.gitignore index 54958c9..b9087a1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.pyc xcuserdata .bin +project.xcworkspace diff --git a/Core_Future.xcodeproj/project.pbxproj b/Core_Future.xcodeproj/project.pbxproj index a96fb46..448c4da 100644 --- a/Core_Future.xcodeproj/project.pbxproj +++ b/Core_Future.xcodeproj/project.pbxproj @@ -55,7 +55,6 @@ F608A9CE2826BCB6005C276B /* WorkPromise.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WorkPromise.h; sourceTree = ""; }; F608A9CF2826BCB6005C276B /* Futures.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Futures.cpp; sourceTree = ""; }; F608A9D02826BCB6005C276B /* Future.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Future.hpp; sourceTree = ""; }; - F608A9D22826BCB6005C276B /* Future.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future.h; sourceTree = ""; }; F608A9D32826BCB6005C276B /* FutureEvent.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureEvent.hpp; sourceTree = ""; }; F608A9D42826BCB6005C276B /* WorkPromise.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = WorkPromise.hpp; sourceTree = ""; }; F608A9D52826BCB6005C276B /* PromiseLocked.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = PromiseLocked.hpp; sourceTree = ""; }; @@ -71,9 +70,7 @@ F608A9E02826BCB6005C276B /* Future_Requirements.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Future_Requirements.hpp; sourceTree = ""; }; F608A9E22826BCB6005C276B /* Future_void.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future_void.h; sourceTree = ""; }; F608A9E32826BCB6005C276B /* Future.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Future.cpp; sourceTree = ""; }; - F608A9E52826BCB6005C276B /* Future.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future.h; sourceTree = ""; }; F608A9E62826BCB6005C276B /* PromiseOfFutures.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = PromiseOfFutures.cpp; sourceTree = ""; }; - F608A9E82826BCB6005C276B /* Future.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Future.h; sourceTree = ""; }; F608A9E92826BCB6005C276B /* Futures.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Futures.hpp; sourceTree = ""; }; F608AA7F2826BE2A005C276B /* Core_Future_Tests */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Core_Future_Tests; sourceTree = BUILT_PRODUCTS_DIR; }; F608AA812826BE2A005C276B /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = ""; }; @@ -100,6 +97,8 @@ F6CC6A2E2D076BEB00D533B7 /* FutureResult_v2.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureResult_v2.hpp; sourceTree = ""; }; F6CC6A2F2D076C1500D533B7 /* FutureResult.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureResult.hpp; sourceTree = ""; }; F6CC6A302D07771200D533B7 /* FutureResult.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FutureResult.cpp; sourceTree = ""; }; + F6CD525B2F5B190B00EFCF67 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; + F6CD527A2F5B197000EFCF67 /* ReadMe.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = ReadMe.md; sourceTree = ""; }; F6DDE7012DAABA93005F94FC /* after_using.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = after_using.hpp; sourceTree = ""; }; F6F53DD528F5A9F000E878EF /* FutureStrong.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FutureStrong.hpp; sourceTree = ""; }; /* End PBXFileReference section */ @@ -135,12 +134,14 @@ isa = PBXGroup; children = ( F608AA862826BE82005C276B /* Frameworks */, - F6BF9BE52E390216002E6AF0 /* Makefile */, - F608AB692827F3BB005C276B /* Makefile.def */, - F608AB6A2827F3BC005C276B /* Makefile.project */, F608A9C02826BC54005C276B /* Products */, F608AA802826BE2A005C276B /* tests */, F61D7C422E38168F002A1AED /* tjp */, + F6CD525B2F5B190B00EFCF67 /* LICENSE */, + F6BF9BE52E390216002E6AF0 /* Makefile */, + F608AB692827F3BB005C276B /* Makefile.def */, + F608AB6A2827F3BC005C276B /* Makefile.project */, + F6CD527A2F5B197000EFCF67 /* ReadMe.md */, ); sourceTree = ""; }; @@ -166,38 +167,35 @@ isa = PBXGroup; children = ( F61F9BF22C6E4E1600F79137 /* _tests */, + F608A9D92826BCB6005C276B /* custom */, F633E93C2915B72B007A4C26 /* after.hpp */, F6DDE7012DAABA93005F94FC /* after_using.hpp */, - F608A9D12826BCB6005C276B /* boost */, - F608A9D92826BCB6005C276B /* custom */, - F608A9E72826BCB6005C276B /* folly */, - F62757BA2B307D7C00655557 /* future_handle_exception.hpp */, - F66A9DEA290C641600AA74BD /* future_on_exception.hpp */, - F635F7C82E3B950B00E3D1D6 /* future_is_exception.hpp */, - F63DCC5C2EDA451D003BEE7C /* future_on_exception_what.hpp */, - F63DCC5D2EDA5CE9003BEE7C /* future_on_exception_value.hpp */, - F6984F512EF34B6800718723 /* future_discard_exception.hpp */, - F676CAC12E9211A700BE5ACC /* future_success.hpp */, F608A9CD2826BCB6005C276B /* Future.h */, F608A9D02826BCB6005C276B /* Future.hpp */, - F60582782EC24B14008FE966 /* weak_future_consume.hpp */, + F6984F512EF34B6800718723 /* future_discard_exception.hpp */, + F62757BA2B307D7C00655557 /* future_handle_exception.hpp */, + F635F7C82E3B950B00E3D1D6 /* future_is_exception.hpp */, + F66A9DEA290C641600AA74BD /* future_on_exception.hpp */, + F63DCC5D2EDA5CE9003BEE7C /* future_on_exception_value.hpp */, + F63DCC5C2EDA451D003BEE7C /* future_on_exception_what.hpp */, + F676CAC12E9211A700BE5ACC /* future_success.hpp */, F608A9C82826BCB6005C276B /* FutureChain.h */, F608A9CB2826BCB6005C276B /* FutureChain.hpp */, F6CC6A2B2D076B5D00D533B7 /* FutureErase.hpp */, F608A9D32826BCB6005C276B /* FutureEvent.hpp */, F6865CAF289C0C6700A46111 /* FutureResult.h */, + F6CC6A2F2D076C1500D533B7 /* FutureResult.hpp */, F6865CAE289C0B5F00A46111 /* FutureResult_v1.hpp */, F6CC6A2E2D076BEB00D533B7 /* FutureResult_v2.hpp */, - F6CC6A2F2D076C1500D533B7 /* FutureResult.hpp */, - F608A9CF2826BCB6005C276B /* Futures.cpp */, F608A9D72826BCB6005C276B /* Futures.h */, F608A9E92826BCB6005C276B /* Futures.hpp */, + F608A9CF2826BCB6005C276B /* Futures.cpp */, F6F53DD528F5A9F000E878EF /* FutureStrong.hpp */, - F608A9E42826BCB6005C276B /* liblw */, F608A9D82826BCB6005C276B /* PromiseLocked.h */, F608A9D52826BCB6005C276B /* PromiseLocked.hpp */, F608A9C92826BCB6005C276B /* PromiseOfFutures.h */, F608A9CA2826BCB6005C276B /* PromiseOfFutures.hpp */, + F60582782EC24B14008FE966 /* weak_future_consume.hpp */, F6B4CFC12A6D7303004B9AB5 /* WeakFuture.hpp */, F608A9CE2826BCB6005C276B /* WorkPromise.h */, F608A9D42826BCB6005C276B /* WorkPromise.hpp */, @@ -205,51 +203,27 @@ path = future; sourceTree = ""; }; - F608A9D12826BCB6005C276B /* boost */ = { - isa = PBXGroup; - children = ( - F608A9D22826BCB6005C276B /* Future.h */, - ); - path = boost; - sourceTree = ""; - }; F608A9D92826BCB6005C276B /* custom */ = { isa = PBXGroup; children = ( F61F9BF32C6E4E3800F79137 /* _tests */, F608A9DA2826BCB6005C276B /* Future.h */, F608A9DB2826BCB6005C276B /* Future.hpp */, + F608A9E32826BCB6005C276B /* Future.cpp */, F608A9DD2826BCB6005C276B /* Future_.h */, F608A9DE2826BCB6005C276B /* Future_.hpp */, - F608A9DF2826BCB6005C276B /* Future_void.hpp */, F608A9E02826BCB6005C276B /* Future_Requirements.hpp */, F608A9E22826BCB6005C276B /* Future_void.h */, - F608A9E32826BCB6005C276B /* Future.cpp */, + F608A9DF2826BCB6005C276B /* Future_void.hpp */, ); path = custom; sourceTree = ""; }; - F608A9E42826BCB6005C276B /* liblw */ = { - isa = PBXGroup; - children = ( - F608A9E52826BCB6005C276B /* Future.h */, - ); - path = liblw; - sourceTree = ""; - }; - F608A9E72826BCB6005C276B /* folly */ = { - isa = PBXGroup; - children = ( - F608A9E82826BCB6005C276B /* Future.h */, - ); - path = folly; - sourceTree = ""; - }; F608AA802826BE2A005C276B /* tests */ = { isa = PBXGroup; children = ( - F61F9BF12C6E4DFC00F79137 /* Makefile.project */, F608AA812826BE2A005C276B /* main.cpp */, + F61F9BF12C6E4DFC00F79137 /* Makefile.project */, ); path = tests; sourceTree = ""; @@ -273,12 +247,12 @@ F61F9BF22C6E4E1600F79137 /* _tests */ = { isa = PBXGroup; children = ( + F633E93D2915B970007A4C26 /* after.cpp */, + F608A9D62826BCB6005C276B /* FutureChain.cpp */, F6CC6A2C2D076B7300D533B7 /* FutureErase.cpp */, F6CC6A302D07771200D533B7 /* FutureResult.cpp */, - F633E93D2915B970007A4C26 /* after.cpp */, F608A9CC2826BCB6005C276B /* PromiseLocked.cpp */, F608A9E62826BCB6005C276B /* PromiseOfFutures.cpp */, - F608A9D62826BCB6005C276B /* FutureChain.cpp */, ); path = _tests; sourceTree = ""; diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..5d3b44b --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +MIT NON-AI License + +Copyright (c) 2026, Timothy Prepscius + +Permission is hereby granted, free of charge, to any person obtaining a copy of the software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions. + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +In addition, the following restrictions apply: + +1. The Software and any modifications made to it may not be used for the purpose of training or improving machine learning algorithms, +including but not limited to artificial intelligence, natural language processing, or data mining. This condition applies to any derivatives, +modifications, or updates based on the Software code. Any usage of the Software in an AI-training dataset is considered a breach of this License. + +2. The Software may not be included in any dataset used for training or improving machine learning algorithms, +including but not limited to artificial intelligence, natural language processing, or data mining. + +3. Any person or organization found to be in violation of these restrictions will be subject to legal action and may be held liable +for any damages resulting from such use. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/ReadMe.md b/ReadMe.md new file mode 100755 index 0000000..7d07160 --- /dev/null +++ b/ReadMe.md @@ -0,0 +1,11 @@ +# Core_Future + +Futures + +Has `then` continuations + +Todo: + +* implement after_on - which will take an future eand execute it's continuation on a scheduler +* write examples +* remove obsolete code diff --git a/tests/main.cpp b/tests/main.cpp index 2de48a2..459218f 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #define CATCH_CONFIG_RUNNER #include diff --git a/tjp/core/future/Future.h b/tjp/core/future/Future.h index bbd53f4..74b6d47 100755 --- a/tjp/core/future/Future.h +++ b/tjp/core/future/Future.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/Future.hpp b/tjp/core/future/Future.hpp index 3b649ca..db9d46c 100755 --- a/tjp/core/future/Future.hpp +++ b/tjp/core/future/Future.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureChain.h b/tjp/core/future/FutureChain.h index fd2f408..3896b87 100755 --- a/tjp/core/future/FutureChain.h +++ b/tjp/core/future/FutureChain.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureChain.hpp b/tjp/core/future/FutureChain.hpp index 3d5156e..0aad64e 100755 --- a/tjp/core/future/FutureChain.hpp +++ b/tjp/core/future/FutureChain.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureErase.hpp b/tjp/core/future/FutureErase.hpp index e40df04..eb0a251 100644 --- a/tjp/core/future/FutureErase.hpp +++ b/tjp/core/future/FutureErase.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureEvent.hpp b/tjp/core/future/FutureEvent.hpp index 91e01c0..e0b8efa 100755 --- a/tjp/core/future/FutureEvent.hpp +++ b/tjp/core/future/FutureEvent.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureResult.h b/tjp/core/future/FutureResult.h index e38451e..a033749 100755 --- a/tjp/core/future/FutureResult.h +++ b/tjp/core/future/FutureResult.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureResult.hpp b/tjp/core/future/FutureResult.hpp index e3335b2..abac05c 100755 --- a/tjp/core/future/FutureResult.hpp +++ b/tjp/core/future/FutureResult.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureResult_v1.hpp b/tjp/core/future/FutureResult_v1.hpp index d222052..6934e07 100755 --- a/tjp/core/future/FutureResult_v1.hpp +++ b/tjp/core/future/FutureResult_v1.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureResult_v2.hpp b/tjp/core/future/FutureResult_v2.hpp index bdb2303..76e3b23 100755 --- a/tjp/core/future/FutureResult_v2.hpp +++ b/tjp/core/future/FutureResult_v2.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/FutureStrong.hpp b/tjp/core/future/FutureStrong.hpp index 5b1f763..3f2c79b 100755 --- a/tjp/core/future/FutureStrong.hpp +++ b/tjp/core/future/FutureStrong.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/Futures.cpp b/tjp/core/future/Futures.cpp index 0cc8576..b1b5b9c 100755 --- a/tjp/core/future/Futures.cpp +++ b/tjp/core/future/Futures.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include #ifdef TJP_CORE_HEADER_ONLY diff --git a/tjp/core/future/Futures.h b/tjp/core/future/Futures.h index 93cdd57..b4b1495 100755 --- a/tjp/core/future/Futures.h +++ b/tjp/core/future/Futures.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/Futures.hpp b/tjp/core/future/Futures.hpp index 01740c0..ac75b41 100755 --- a/tjp/core/future/Futures.hpp +++ b/tjp/core/future/Futures.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/PromiseLocked.h b/tjp/core/future/PromiseLocked.h index 7d0f785..9c52c53 100755 --- a/tjp/core/future/PromiseLocked.h +++ b/tjp/core/future/PromiseLocked.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/PromiseLocked.hpp b/tjp/core/future/PromiseLocked.hpp index f50c4c1..76da195 100755 --- a/tjp/core/future/PromiseLocked.hpp +++ b/tjp/core/future/PromiseLocked.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/PromiseOfFutures.h b/tjp/core/future/PromiseOfFutures.h index a14a60e..61d1a0d 100755 --- a/tjp/core/future/PromiseOfFutures.h +++ b/tjp/core/future/PromiseOfFutures.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/PromiseOfFutures.hpp b/tjp/core/future/PromiseOfFutures.hpp index b7efeaf..2da7b6f 100755 --- a/tjp/core/future/PromiseOfFutures.hpp +++ b/tjp/core/future/PromiseOfFutures.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/WeakFuture.hpp b/tjp/core/future/WeakFuture.hpp index 2d8591d..050843a 100755 --- a/tjp/core/future/WeakFuture.hpp +++ b/tjp/core/future/WeakFuture.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/WorkPromise.h b/tjp/core/future/WorkPromise.h index 5fb8f03..84b9784 100755 --- a/tjp/core/future/WorkPromise.h +++ b/tjp/core/future/WorkPromise.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/WorkPromise.hpp b/tjp/core/future/WorkPromise.hpp index c3f540c..9a67ae5 100755 --- a/tjp/core/future/WorkPromise.hpp +++ b/tjp/core/future/WorkPromise.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/_tests/FutureChain.cpp b/tjp/core/future/_tests/FutureChain.cpp index 32376fa..ca9ec76 100755 --- a/tjp/core/future/_tests/FutureChain.cpp +++ b/tjp/core/future/_tests/FutureChain.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include #include diff --git a/tjp/core/future/_tests/FutureErase.cpp b/tjp/core/future/_tests/FutureErase.cpp index 90075dc..a6d1c04 100644 --- a/tjp/core/future/_tests/FutureErase.cpp +++ b/tjp/core/future/_tests/FutureErase.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include "../FutureErase.hpp" #include diff --git a/tjp/core/future/_tests/FutureResult.cpp b/tjp/core/future/_tests/FutureResult.cpp index 3a37e34..6e241be 100644 --- a/tjp/core/future/_tests/FutureResult.cpp +++ b/tjp/core/future/_tests/FutureResult.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include "../FutureResult.hpp" #include diff --git a/tjp/core/future/_tests/PromiseLocked.cpp b/tjp/core/future/_tests/PromiseLocked.cpp index dfe3ff1..a508c52 100755 --- a/tjp/core/future/_tests/PromiseLocked.cpp +++ b/tjp/core/future/_tests/PromiseLocked.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include diff --git a/tjp/core/future/_tests/PromiseOfFutures.cpp b/tjp/core/future/_tests/PromiseOfFutures.cpp index 1f7e318..4f726ee 100755 --- a/tjp/core/future/_tests/PromiseOfFutures.cpp +++ b/tjp/core/future/_tests/PromiseOfFutures.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include #include diff --git a/tjp/core/future/_tests/after.cpp b/tjp/core/future/_tests/after.cpp index dff8540..b8747d9 100755 --- a/tjp/core/future/_tests/after.cpp +++ b/tjp/core/future/_tests/after.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include diff --git a/tjp/core/future/after.hpp b/tjp/core/future/after.hpp index 4f20ef2..1d995ce 100755 --- a/tjp/core/future/after.hpp +++ b/tjp/core/future/after.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/after_using.hpp b/tjp/core/future/after_using.hpp index d908a25..884ff5b 100755 --- a/tjp/core/future/after_using.hpp +++ b/tjp/core/future/after_using.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/boost/Future.h b/tjp/core/future/boost/Future.h deleted file mode 100755 index c6a8773..0000000 --- a/tjp/core/future/boost/Future.h +++ /dev/null @@ -1,23 +0,0 @@ -// TJP COPYRIGHT HEADER - -#pragma once - -#define BOOST_THREAD_PROVIDES_FUTURE -#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION -#include -#include -#include - -namespace tjp { -namespace core { - -template -using Future = boost::future; - -template -using Promise = boost::promise; - -} // namespace -} // namespace - - diff --git a/tjp/core/future/custom/Future.cpp b/tjp/core/future/custom/Future.cpp index ea7c069..49eab8f 100755 --- a/tjp/core/future/custom/Future.cpp +++ b/tjp/core/future/custom/Future.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include "Future.hpp" diff --git a/tjp/core/future/custom/Future.h b/tjp/core/future/custom/Future.h index a4adbc5..c68c2b2 100755 --- a/tjp/core/future/custom/Future.h +++ b/tjp/core/future/custom/Future.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/Future.hpp b/tjp/core/future/custom/Future.hpp index 0d65916..763e4c6 100755 --- a/tjp/core/future/custom/Future.hpp +++ b/tjp/core/future/custom/Future.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/Future_.h b/tjp/core/future/custom/Future_.h index 0955000..c1d0338 100755 --- a/tjp/core/future/custom/Future_.h +++ b/tjp/core/future/custom/Future_.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/Future_.hpp b/tjp/core/future/custom/Future_.hpp index 2a20dd0..84ec884 100755 --- a/tjp/core/future/custom/Future_.hpp +++ b/tjp/core/future/custom/Future_.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/Future_Requirements.hpp b/tjp/core/future/custom/Future_Requirements.hpp index e912400..65db558 100755 --- a/tjp/core/future/custom/Future_Requirements.hpp +++ b/tjp/core/future/custom/Future_Requirements.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/Future_void.h b/tjp/core/future/custom/Future_void.h index 4a0ade4..9caa370 100755 --- a/tjp/core/future/custom/Future_void.h +++ b/tjp/core/future/custom/Future_void.h @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/Future_void.hpp b/tjp/core/future/custom/Future_void.hpp index 6ce0a64..735fb8f 100755 --- a/tjp/core/future/custom/Future_void.hpp +++ b/tjp/core/future/custom/Future_void.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/custom/_tests/Future.cpp b/tjp/core/future/custom/_tests/Future.cpp index 77340b0..f53f6f3 100755 --- a/tjp/core/future/custom/_tests/Future.cpp +++ b/tjp/core/future/custom/_tests/Future.cpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #include #include diff --git a/tjp/core/future/folly/Future.h b/tjp/core/future/folly/Future.h deleted file mode 100755 index 0264bf9..0000000 --- a/tjp/core/future/folly/Future.h +++ /dev/null @@ -1,19 +0,0 @@ -// TJP COPYRIGHT HEADER - -#pragma once - -#include - -namespace tjp { -namespace core { - -template -using Promise = folly:Promise; - -template -using Future = folly::Future; - -} // namespace -} // namespace - - diff --git a/tjp/core/future/future_discard_exception.hpp b/tjp/core/future/future_discard_exception.hpp index 8bac5db..526f04c 100755 --- a/tjp/core/future/future_discard_exception.hpp +++ b/tjp/core/future/future_discard_exception.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/future_handle_exception.hpp b/tjp/core/future/future_handle_exception.hpp index 83231f9..a54eb4b 100755 --- a/tjp/core/future/future_handle_exception.hpp +++ b/tjp/core/future/future_handle_exception.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/future_is_exception.hpp b/tjp/core/future/future_is_exception.hpp index ec78c68..53d1896 100755 --- a/tjp/core/future/future_is_exception.hpp +++ b/tjp/core/future/future_is_exception.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/future_on_exception.hpp b/tjp/core/future/future_on_exception.hpp index 96306be..5d319b1 100755 --- a/tjp/core/future/future_on_exception.hpp +++ b/tjp/core/future/future_on_exception.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/future_on_exception_value.hpp b/tjp/core/future/future_on_exception_value.hpp index 9d22411..eda9462 100755 --- a/tjp/core/future/future_on_exception_value.hpp +++ b/tjp/core/future/future_on_exception_value.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/future_on_exception_what.hpp b/tjp/core/future/future_on_exception_what.hpp index f858ddb..0ddad5f 100755 --- a/tjp/core/future/future_on_exception_what.hpp +++ b/tjp/core/future/future_on_exception_what.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/future_success.hpp b/tjp/core/future/future_success.hpp index c440bc6..ef05ca6 100755 --- a/tjp/core/future/future_success.hpp +++ b/tjp/core/future/future_success.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once diff --git a/tjp/core/future/liblw/Future.h b/tjp/core/future/liblw/Future.h deleted file mode 100755 index 4d2e218..0000000 --- a/tjp/core/future/liblw/Future.h +++ /dev/null @@ -1,19 +0,0 @@ -// TJP COPYRIGHT HEADER - -#pragma once - -#include - -namespace tjp { -namespace core { - -template -using Promise = lw::event::Promise; - -template -using Future = lw::event::Future; - -} // namespace -} // namespace - - diff --git a/tjp/core/future/weak_future_consume.hpp b/tjp/core/future/weak_future_consume.hpp index ee43e64..0c93754 100755 --- a/tjp/core/future/weak_future_consume.hpp +++ b/tjp/core/future/weak_future_consume.hpp @@ -1,4 +1,6 @@ -// TJP COPYRIGHT HEADER +// License: Modified MIT (NON-AI) +// See the LICENSE file in the root directory for license information. +// Copyright 2026 Timothy Prepscius #pragma once