Need a C++ component which gets a list of tasks from a mysql database,
the "task" consists of:
function to call, parameters, and scheduled times in cron format
DATABASE TABLE - tasks
var char function
var char args
var char scheduledtime
scheduled time is in the format (seconds minutes hours days weeks months)
30 0 0 0 0 = every 30 seconds
0 5 0 0 0 0 = every 5 minutes
0 1 0 0 0 0 = every 1 minute
0 1 1 0 0 0 = every 1 hour 1 minute
0 1 1 2 0 0 = every 2 days, 1 hour, 1 minute
When the object is created, it gets a list of tasks from the database, and executes the function at the specified time with the args specified.
This object should start a boost thread which sleeps until it is time to execute the next function. The function is launched in a new thread, then the main scheduling thread goes back to sleep.
This application should come with a test application which uses the component.
It should create a new instance of the object, retrieve the tasks from a sample database and run them at the scheduled times.
接包方 | 国家/地区 | |
---|---|---|
![]() |
3
Anansu
|
|
![]() |
3
Mariek
|
|
![]() |
3
Hannals
(中标)
|
|
![]() |
3
Canbayir
|
|
![]() |
3
Witinnovation
|
|
![]() |
3
Picrawf
|
|
![]() |
3
Studioxcess
|
|
![]() |
3
Keysolution
|
|
![]() |
3
Gaboury
|
|
![]() |
3
Iprog
|
|
![]() |
2
Ibanyan
|
|
![]() |
2
Javame
|
|
![]() |
2
Andrewchoi
|
|
![]() |
2
Dtreiman
|
|
![]() |
2
Eleni77
|
|
![]() |
2
Mastasoftware
|
|
![]() |
2
Winsoftech
|
|
![]() |
2
Dreamworldtech
|
|
![]() |
2
Eugenez
|
|
2
Cybernetconsulting
|
||
2
Jennhowell
|