Alis.Core.Aspect.Thread
0.6.4
See the version list below for details.
dotnet add package Alis.Core.Aspect.Thread --version 0.6.4
NuGet\Install-Package Alis.Core.Aspect.Thread -Version 0.6.4
<PackageReference Include="Alis.Core.Aspect.Thread" Version="0.6.4" />
<PackageVersion Include="Alis.Core.Aspect.Thread" Version="0.6.4" />
<PackageReference Include="Alis.Core.Aspect.Thread" />
paket add Alis.Core.Aspect.Thread --version 0.6.4
#r "nuget: Alis.Core.Aspect.Thread, 0.6.4"
#:package Alis.Core.Aspect.Thread@0.6.4
#addin nuget:?package=Alis.Core.Aspect.Thread&version=0.6.4
#tool nuget:?package=Alis.Core.Aspect.Thread&version=0.6.4
Develop the video games of your dreams 💯 free!! on Windows, MacOS, Linux, Android(soon), IOS(soon).
📚 Alis.Core.Aspect.Thread
⚙️ Modular Design
All modules within the Alis framework, including
Alis.Core.Aspect.Thread
, are fully independent and can be used separately. While the primary focus of Alis is game development, these modules are designed to be versatile and can be integrated into other types of applications or environments where thread management, task execution, or concurrency handling are needed.
🖥️ Platform Compatibility
The Alis framework, including
Alis.Core.Aspect.Thread
, is designed to support a wide range of platforms, ensuring flexibility and adaptability for developers. Each module is optimized for seamless integration across the following architectures and operating systems:
Supported Platforms:
- Windows
win-x64
win-x86
win-arm64
- Linux
linux-x64
linux-musl-x64
linux-arm
linux-arm64
linux-musl-arm
linux-musl-arm64
- macOS
osx-x64
osx-arm64
📖 Description
Alis.Core.Aspect.Thread
is a module within the Alis framework designed to manage the execution of tasks in separate
threads. This module includes classes to define tasks that run in parallel, as well as a manager to handle the lifecycle
of multiple threads.
Features:
- Task Management: Encapsulate tasks that can be executed in separate threads with cancellation support.
- Thread Management: Manage the starting and stopping of multiple threads and track the active threads.
- Cancellation Support: Gracefully handle task cancellation through the use of
CancellationToken
. - Main Classes:
ThreadTask
: Encapsulates a task to be executed on a separate thread.ThreadManager
: Manages multipleThreadTask
instances, starting, stopping, and tracking threads.
🚀 Getting Started
To start using Alis.Core.Aspect.Thread
, simply install the package:
dotnet add package Alis.Core.Aspect.Thread
This module is ideal for applications that need to run concurrent tasks in separate threads.
Basic Usage Example:
public static void Main(string[] args)
{
ThreadManager threadManager = new ThreadManager();
CancellationTokenSource cts1 = new CancellationTokenSource();
ThreadTask task1 = new ThreadTask(token =>
{
for (int i = 0; (i < 10) && !token.IsCancellationRequested; i++)
{
Logger.Info($"Task 1 - Count: {i}");
System.Threading.Thread.Sleep(1000);
}
}, cts1.Token);
CancellationTokenSource cts2 = new CancellationTokenSource();
ThreadTask task2 = new ThreadTask(token =>
{
for (int i = 0; (i < 10) && !token.IsCancellationRequested; i++)
{
Logger.Info($"Task 2 - Count: {i}");
System.Threading.Thread.Sleep(1000);
}
}, cts2.Token);
threadManager.StartThread(task1);
threadManager.StartThread(task2);
Logger.Info("Press any key to stop threads...");
Console.ReadKey();
threadManager.StopAllThreads();
Logger.Info("Press any key to exit...");
Console.ReadKey();
}
🛡️ License
The ALIS framework is released under the GNU General Public License v3 (GPL-3.0), a strong copyleft license that ensures your freedom to use, modify, and distribute the framework while preserving the same license terms. Below is an explanation of how the license affects you as a developer:
Key License Points
Complete Freedom for Video Game Developers:
Any video game created with the ALIS framework is completely free and unrestricted. You are free to create, publish, and distribute your games without any licensing fees or royalties.Source Code Availability:
If you make modifications to the ALIS framework itself or integrate it as part of a larger software project (beyond just using it in a video game), you are required to make those changes publicly available under the same GPL-3.0 license. This ensures the framework remains open and accessible to everyone.No Obligation to Mention:
While it’s not required, it would be greatly appreciated if you mention or credit the ALIS project somewhere in your game, such as in the credits or documentation. This is entirely optional and is meant to help grow the ALIS community.Patent Rights:
Contributors to ALIS provide an express grant of patent rights, meaning you’re protected from patent-related legal issues when using the framework.Copyright and Notices:
You must preserve copyright notices and license texts when redistributing ALIS, either in its original form or as part of a modified version.
What This Means for Your Games
Your Game’s License:
The GPL-3.0 license applies only to the ALIS framework and its modifications. It does not impose restrictions on the license of the game you build using ALIS. You are free to license your game however you choose (e.g., proprietary, open-source, or public domain).Monetization:
You are free to monetize games created with ALIS, whether by selling them, integrating ads, or any other form of commercialization.
Contributor Guide
Thank you for investing your time in contributing to our project! Any contribution you make will be reflected. Read our Code of Conduct to keep our community approachable and respectable.
Authors
Pablo Perdomo Falcón |
Collaborators
Raúl Lozano Ponce | Juan Ángel Trujillo Jiménez | Pablo Perdomo Falcón | Christian García | RicardoVillarta |
Gabriel | Pedro D.GR | Claudia2000pf | Carlos | Roser Almenar |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 2.0
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETCoreApp 2.1
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETCoreApp 2.2
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETCoreApp 3.0
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETCoreApp 3.1
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETFramework 4.7.1
- System.IO.Compression (>= 4.3.0)
- System.Memory (>= 4.6.2)
- System.Net.Http (>= 4.3.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETFramework 4.7.2
- System.IO.Compression (>= 4.3.0)
- System.Memory (>= 4.6.2)
- System.Net.Http (>= 4.3.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETFramework 4.8
- System.IO.Compression (>= 4.3.0)
- System.Memory (>= 4.6.2)
- System.Net.Http (>= 4.3.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETFramework 4.8.1
- System.IO.Compression (>= 4.3.0)
- System.Memory (>= 4.6.2)
- System.Net.Http (>= 4.3.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETStandard 2.0
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
.NETStandard 2.1
- System.Memory (>= 4.6.2)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.1)
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.6.8 | 169 | 6/14/2025 |
0.6.7 | 195 | 6/13/2025 |
0.6.6 | 231 | 6/13/2025 |
0.6.5 | 232 | 6/13/2025 |
0.6.4 | 282 | 6/12/2025 |
0.6.3 | 176 | 3/8/2025 |
0.6.2 | 218 | 3/5/2025 |
0.6.1 | 124 | 2/2/2025 |
0.6.0 | 129 | 2/1/2025 |
0.5.9 | 118 | 1/15/2025 |
0.5.8 | 83 | 1/10/2025 |
0.5.7 | 77 | 1/8/2025 |
0.5.6 | 129 | 1/7/2025 |
0.5.5 | 133 | 12/31/2024 |
0.5.4 | 126 | 12/27/2024 |
0.5.3 | 122 | 12/26/2024 |
0.5.2 | 122 | 12/25/2024 |
0.5.1 | 118 | 12/21/2024 |
0.5.0 | 121 | 12/20/2024 |
0.4.9 | 116 | 12/16/2024 |
0.4.8 | 135 | 12/15/2024 |
0.4.7 | 120 | 12/3/2024 |
0.4.6 | 122 | 12/1/2024 |
0.4.5 | 138 | 11/10/2024 |
0.4.4 | 121 | 11/3/2024 |
0.4.3 | 132 | 9/8/2024 |
0.4.2 | 146 | 8/13/2024 |
0.4.1 | 98 | 7/30/2024 |
0.4.0 | 146 | 7/21/2024 |
0.3.9 | 136 | 7/21/2024 |
0.3.8 | 130 | 7/20/2024 |
0.3.7 | 128 | 7/20/2024 |
0.3.6 | 149 | 7/19/2024 |
0.3.5 | 136 | 7/18/2024 |
0.3.4 | 135 | 7/17/2024 |
0.3.3 | 128 | 7/17/2024 |
0.3.2 | 141 | 7/17/2024 |
0.3.1 | 150 | 7/7/2024 |
0.3.0 | 134 | 7/6/2024 |
0.2.9 | 156 | 7/3/2024 |
0.2.8 | 113 | 6/1/2024 |
0.2.7 | 344 | 2/1/2024 |
0.2.6 | 322 | 1/29/2024 |
0.2.5 | 372 | 1/21/2024 |
0.2.4 | 407 | 1/2/2024 |
0.2.3 | 535 | 10/11/2023 |
0.2.2 | 490 | 10/8/2023 |
0.2.1 | 525 | 10/6/2023 |
0.2.0 | 517 | 10/4/2023 |
0.1.9 | 538 | 10/1/2023 |
0.1.8 | 544 | 10/1/2023 |
0.1.7 | 551 | 9/15/2023 |
0.1.6 | 519 | 9/13/2023 |
0.1.5 | 539 | 9/12/2023 |
0.1.4 | 586 | 9/11/2023 |
0.1.3 | 542 | 9/10/2023 |
0.1.2 | 537 | 9/10/2023 |
0.1.1 | 560 | 8/29/2023 |
0.1.0 | 586 | 8/14/2023 |
0.0.9 | 612 | 8/13/2023 |
0.0.8 | 683 | 6/9/2023 |
0.0.7 | 634 | 4/30/2023 |
0.0.6 | 805 | 12/25/2022 |
0.0.5 | 808 | 10/23/2022 |
0.0.4 | 787 | 10/23/2022 |