summaryrefslogtreecommitdiff
path: root/src/TaskMan.cc
AgeCommit message (Collapse)Author
2012-04-08Few more quirks into the stackless mode; we don't want to allocate stacks ↵Pixel
nor create any co-routine (or fiber) if we're stackless.
2012-04-08Putting the bases for stackless co-routines.Pixel
Also cleaning up some code, clarifying some concepts, and adding more exception catchers.
2012-04-08This debug message wasn't supposed to get committed...Pixel
2012-04-06Making it simplier to register a task and wait for it. Also renamed ↵Pixel
createTask to registerTask, which makes way more sense.
2012-04-06Making the threads (as well as the taskman thread) a bit more exception-robust.Pixel
2012-04-06A few improvements over how a threaded TaskMan works. Now its own exported ↵Pixel
class. Also has a proper exception handling in its caller.
2012-04-06Anonymizing the WinSocketStartup class.Pixel
2012-04-03Making a few classes anonymous.Pixel
2012-04-03Simplifying the logic in the compuation of the noWait boolean.Pixel
2012-04-03Fixing a bug where we could have a stalled TaskMan with dead tasks pending ↵Pixel
ack from yielded tasks.
2012-04-01More code cleanup.Pixel
2012-03-27More code cleanupNicolas "Pixel" Noble
2012-03-08Adding the ScopeLock class to simplify a bit some pieces of code.Pixel
2011-12-11Added the ability for a task or an operation to yield. Also optimized some ↵Pixel
bits of the TaskManager.
2011-12-04Refactored the Thread code a bit, and created the GlobalThread class, for ↵Pixel
threads that are created on startup.
2011-12-04Reworked some things in the architecture, mainly exceptions and asserts.Pixel
-) Removed Assert() -) Added AAssert(), IAssert(), RAssert(), TAssert() and Failure() -) Reworked all asserts in the code, and added meaningful messages to them. -) Changed the way the startup code is generated; BALAU_STARTUP is no longer necessary.
2011-11-29The TaskManager no longer waits on the pop(); instead it waits in the libev ↵Pixel
loop; also the Queue<> template changed for a naive but std-less implementation.
2011-11-19Fixing a few very stupid bugs.Pixel
2011-11-18Updating libev's timestamp after we (potentially) wait a long time for ↵Pixel
something to do.
2011-11-17HTTP server's first real test, alongside multiple taskmanager threads.Pixel
I'm not really sure I fully like the way I'm designing this, but I guess it could be solved with an HTTP/HTML helper class around the Action class. However, the HTTP server awfully need reference counting, so it doesn't go away before all of the workers disappear, which means a bit of a redesign of the Listener template.
2011-11-17And adding the round robin system to the task scheduler. Now to write some ↵Pixel
unit test for this...
2011-11-17Cleaning some code, redesigning a bit the stack allocation problem from the ↵Pixel
task manager, and actually implementing it properly.
2011-11-17Introducing the fact we need a more efficient stack allocator, and that it's ↵Pixel
to be performed from the task manager.
2011-11-17Since tasks can be on different task managers, one has to signal them a bit ↵Pixel
differently.
2011-11-16clang actually managed to pick up a bug...Pixel
2011-11-16And with the new TaskScheduler system, let's add a way for a new task to ↵Pixel
stick on another one's thread, if needed. (and it is)
2011-11-16Kind of a big revamp of the TaskMan / Task model, in order to introduce a ↵Pixel
TaskScheduler. The idea is that we need to support multiple task managers from multiple threads. So that revamp means we now should be able to support that, except the TaskScheduler needs to implement a round robin system, to distribute tasks across multiple task managers. But at least, the fundamental redesign to permit this is here.
2011-10-18libcoro seems to be doing really spurious things when not using the standard ↵Pixel
functions. Switching out libcoro for the native Fibers interface for Win32. Switching out the asm version for the ucontext version for Linux.
2011-10-17Tweaking a bit the main event loop to simplify it.Pixel
2011-10-17Adding an early version of the 'engine debug' facility.Pixel
2011-10-14Fixing a few bugs.Pixel
-) The IO class needed an assignment operator, as well as the ability to NOT contain a Handle. -) The Task Manager wasn't properly starting up pending tasks that got added during startup.
2011-10-12Forgot mingw32-config.h. Also fixed a couple of bugs:Pixel
WSAStartup has to be called in win32 at startup. The TLS environment needs to be cleared when created.
2011-10-10Adding the basic "Handle" structure, and adding an early version of Input.Pixel
Renamed suspend() to yield(). Fixed a couple of bugs, and reorganized slightly some code.
2011-10-09Adding basic locks from libpthread. Also, that 'pending' loop belongs after ↵Pixel
we activate the tasks.
2011-10-09Starting to integrate libev; timer event works.Pixel
2011-10-09More work on the Task manager.Pixel
Now "Main" is a Task, among the most important changes. Introduced the notion of Events, and managed a coherent task switch. Also, renamed a lot of the variables to have a more coherent naming scheme.
2011-10-07More work in the Task manager.Pixel
Also fixing a few bugs linked with the printer and TLS. Removed flto from compilation flags: this actually creates bad code (!)
2011-10-07Preliminary work for the Task manager.Pixel
Added libcoro submodule. Also refactored some pieces of code.