This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
LuaTask - Multitasking support Library
License
LuaDist/luatask
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
LuaTask 1.6.4 - "Multitasking" support Library
----------------------------------------------
THE IDEA:
---------
LuaTask implements a concurrent and independent Lua execution
environment model.
We choose the "task" name to avoid confusion with "lua threads".
The program calling luaopen_task() becomes the "main" task.
Each "task" started by the main one ( by calling task.create()), has an
independent lua state, own message queue and execution os thread.
Each task is represented by a number starting at 1 ( 1 is the main
task).
The internal task list grows as it is necessary. Currently
there is no list size limit.
WIN32 THREADS
-------------
The first implementation ( and the current one selected with NATV_WIN32)
called the Win32 APIs direct from syncos.c and doesn't support cancel.
When I tried to implement the cancel method and after looking for
alternatives to the infame TerminateThread, I decided to use as an
option the Pthreads-Win32 library.
Pthreads-Win32 library (2.7.0) implements thread
cancellation with and without QueueUserAPCEx.
QueueUserAPCEx (by Panagiotis E. Hadjidoukas) is used for true async
cancelation of threads (including blocked threads).
DOCUMENTATION
-------------
Inside the doc directory you can find a manual and a reference guide.
AUTHORS:
--------
LuaTask have been developed by Daniel Quintela.
http://www.soongsoft.com mailto:dq@soongsoft.com
About
LuaTask - Multitasking support Library
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published