Commit Graph

42 Commits

Author SHA1 Message Date
pancake
8159e7c322 Fix last covs 2018-07-13 14:51:34 +02:00
Florian Märkl
8db9631c98 Block Signals when locking core->tasks_lock 2018-07-12 11:36:13 +02:00
Florian Märkl
16d72de010 Use OneShot for cons->event_resize 2018-07-12 11:36:13 +02:00
Florian Märkl
f9f5ddeac5 Add Task OneShots 2018-07-12 11:36:13 +02:00
pancake
b8a9e05b2c Disable =* commands to create tasks. Related to #10515 2018-07-09 00:30:16 +02:00
Florian Märkl
a566e7af99 Add Semaphores to r_util and use them for joining Tasks (#10622)
* Add Semaphores to r_util

* Use Semaphore for joining Tasks
2018-07-05 00:25:57 +02:00
Florian Märkl
7743169a9b Fix double unlock in task_join() (#10519) 2018-06-27 17:06:29 +02:00
Florian Märkl
c6a3b6bc49 Add tasks_running to RCore to reduce tasks overhead (#10514) 2018-06-27 12:59:23 +02:00
Florian Märkl
7bc994803c Join Tasks using Lock 2018-06-26 23:08:24 +02:00
Florian Märkl
5e35ad898b RConsContext (#10450)
* Add RConsContext
* Swap cons in tasks using RConsContext
* Create cons context for background tasks
* Move event_interrupt to RConsContext
* Fix breaking main cons from signal
* Make r_print_is_interrupted() use callback
2018-06-23 12:10:13 +02:00
Florian Märkl
e3849843c5 Make r_core_task_del() thread safe (#10448) 2018-06-22 13:16:29 +02:00
Florian Märkl
3feb95079e Fix Task Coverities #10401 (#10416) 2018-06-20 09:00:58 +08:00
Florian Märkl
43449afcfe Fix joining Tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
9d60de0b25 Call Task Callback 2018-06-17 11:34:03 +02:00
Florian Märkl
fa3ff32569 Fix Task Commands for new Tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
3a81bf367c Update r_core_task_print() 2018-06-17 11:34:03 +02:00
Florian Märkl
6cba82c066 Flatten RThreadMsg into RCoreTask 2018-06-17 11:34:03 +02:00
Florian Märkl
ea98d95e8f Fix an invalid cons load in tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
1d4a2bd678 Add Task Sleeping 2018-06-17 11:34:03 +02:00
Florian Märkl
9cf0dff42f Add r_core_task_sync_begin/end() 2018-06-17 11:34:03 +02:00
Florian Märkl
5eaac7230d Do not print task finished for main task 2018-06-17 11:34:03 +02:00
Florian Märkl
9ff250d1a7 Tasks Cons Swapping 2018-06-17 11:34:03 +02:00
Florian Märkl
1a30d17d31 Keep current task in RCore 2018-06-17 11:34:03 +02:00
Florian Märkl
eeab1869c1 Schedule Tasks in r_cons_is_breaked() 2018-06-17 11:34:03 +02:00
Florian Märkl
f449ae66f5 Fix Command History and Quit 2018-06-17 11:34:03 +02:00
Florian Märkl
59c2d5d419 Do not add task to queue if ending 2018-06-17 11:34:03 +02:00
Florian Märkl
90810d2ff7 Change task id assigning, Properly set task thread 2018-06-17 11:34:03 +02:00
Florian Märkl
b3714f6fdf Initial Task Scheduling Implementation
Fix Creation and Deletion of tasks_queue
2018-06-17 11:34:03 +02:00
Florian Märkl
cdf5f5c9d2 Add &t command 2018-06-17 11:34:03 +02:00
pancake
5a899f2846 Add r_th_try_pause() and improve task threading support 2018-04-25 12:30:57 +02:00
pancake
fce51ed9d1 Dont pause bg tasks, avoid deadlock, needs proper fix 2018-04-24 23:11:08 +02:00
radare
a30c5c3722
Initial work on supporting pauseable CoreTasks (#9921) 2018-04-20 00:25:33 +02:00
pancake
59d8f4e280 Minor improvements here and there 2018-04-12 11:28:25 +02:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
pancake
4f1c50f7f5 Code cleanup and reindent in visual/core 2016-08-23 03:02:23 +02:00
Jeffrey Crowell
c145740030 replace r_cons_printf("%s\n",p) r_cons_println(p)
move from 10% of code in vfprintf to just 6% \o/ for simple tests of r2
-c "aaa" -q /bin/ls
2016-06-26 00:52:03 -04:00
pancake
9e129a793c Fix '& cmd' task state 2016-01-03 02:32:56 +01:00
pancake
b515a34676 More stdboolification 2015-09-14 12:35:38 +02:00
pancake
1e3e97f2fb More and better support for tasks. Add anal.sleep to avoid 100% cpu in analysis 2014-11-02 02:01:09 +01:00
pancake
abb3690c3a More fixes for the &Task command 2014-11-01 05:18:37 +01:00
pancake
d22b93c898 Add missing file 2014-11-01 04:48:35 +01:00