Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » JobQueue: A simple and programmable job/queue model.
JobQueue: A simple and programmable job/queue model. [message #47724] Sat, 11 March 2017 21:47 Go to next message
Oblivion is currently offline  Oblivion
Messages: 928
Registered: August 2007
Experienced Contributor
Hello,

JobQueue is a helper base class, implementing through a standardized interface a simple, and programmable job/queue model, suitable mainly for, but not limited to, non-blocking (asynchronous) socket operations. It also allows batching. Note that this class isn't meant for multithreading.


This class (formerly "AsyncQueue") ise basically an abstraction of Upp's own HttpRequest class' asynchronous model, making use of C++11 features (Function type callbacks) and it can easily utilize lambda callbacks. Hence requires at least C++11.
It is also the backbone of my upcoming SSH (initial release) and NetworkProxy (new version) classes.


I also provided ClientSockets example, which is a non-blocking version of ClientSocket example (requires ServerSocket example).
The example demonstrates the usage of JobQueue and lambda callbacks.


Any criticism and suggestions are always welcome.

History:
-----------------------------

2017-03-18:     A slight change to the API made: From now on error code can also be specified for halting.
                GetError(): Added to the API, fixed const correctness.
                Documentation updated accodingly.
2017-03-16:     Pick() fixed. Error string was not picked.
2017-03-13:     Documentation: Typo fixed.
2017-03-11:     Initial release.




Regards,

Oblivion




[Updated on: Sat, 18 March 2017 14:42]

Report message to a moderator

Re: JobQueue: A simple and programmable job/queue model. [message #47746 is a reply to message #47724] Sat, 18 March 2017 13:09 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 928
Registered: August 2007
Experienced Contributor
Hello,

JobQueue class and its documentation is updated. See the first post for the changes made and the package.

Regards,

Oblivion.


[Updated on: Sat, 18 March 2017 13:53]

Report message to a moderator

Previous Topic: Added Google Test
Next Topic: [SOLVED] Control4U_demo cannot close ?
Goto Forum:
  


Current Time: Thu Oct 21 06:37:33 CEST 2021

Total time taken to generate the page: 0.02059 seconds