20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

Working on an Executor to replace Job* functionality
#1
I'm working on Executor functionality equivalent to what's in Java but that anticipates where C++ might be going with it. There's currently a proposal to add something similar to the C++ language.

If people aren't familiar with how Executors work in Java take a look at a few examples.

http://tutorials.jenkov.com/java-util-co...rvice.html
http://www.baeldung.com/java-executor-service-tutorial

Currently I'm just playing with some ideas. C++11 has added so much to the language I'm not yet familiar with I'm trying to work through some of the issues. For example, trying to use std::future like std::thread does isn't easy.

This is really rough, doesn't compile, and is basically my current playground for trying to figure it out:

https://github.com/jimfcarroll/xbmc/blob...ecutor.cpp
https://github.com/jimfcarroll/xbmc/blob...rService.h

If anyone has an comments, suggestions, or objections, please let me know.

Jim
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average


Messages In This Thread
Working on an Executor to replace Job* functionality - by jfcarroll - 2018-02-05, 16:20


Logout Mark Read Team Forum Stats Members Help
Working on an Executor to replace Job* functionality00