Florian Märkl
d16dfd7b84
Print "Task finished" only if interactive ##core
2019-04-04 14:59:27 +02:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons ( #13132 )
2019-02-18 06:20:01 +01:00
Florian Märkl
f80a47ab60
Move Palette to RConsContext to make RCoreTask less racy ##cons
2019-01-18 11:58:49 +01:00
Florian Märkl
b0468f6b73
Make =h work in tasks ##threads
2019-01-07 13:24:30 +01:00
David CARLIER
5783cf42c4
Use after fix due to task free on non positive counting ( #12138 )
2018-11-13 11:56:57 +01:00
Florian Märkl
77d80106e6
Protect task->refcount by tasks lock
2018-11-11 12:11:48 +01:00
radare
01bd0d38d8
Fix #11509 - XNU debugger ( #11557 )
...
* Use PT_ATTACHEXC and PT_SIGEXC on mac to get BSD signals as XNU exceptions
2018-09-18 11:35:10 +02:00
Florian Märkl
2883398942
Fix #11081 - Transient Tasks ( #11214 )
...
* Make r_th_free() not kill the thread
* Transient Tasks
* Add transient info to & list output
* Use refcounting for Tasks
2018-08-23 13:49:28 +02:00
Florian Märkl
404e4a1b74
Prompt on exit to kill tasks ( #11054 )
2018-08-12 13:27:45 +02:00
pancake
d55bb122f3
Kill r_io_creat and make it into R_IO_CREAT, honor -ww
2018-08-11 20:44:28 +02:00
Florian Märkl
cc3c87532a
Break all tasks on exit ( #11026 )
...
* Break all tasks on exit
* null check in r_cons_context_break()
2018-08-11 16:23:27 +02:00
Florian Märkl
7ab290d170
Fix tasks_lock_enter()
2018-08-01 00:55:28 +01:00
Florian Märkl
7995089d3f
Always keep break stack filled in tasks in threads
2018-07-21 16:29:12 +02:00
Florian Märkl
41127c0dfc
Simplify core->tasks_lock locking
2018-07-21 16:29:12 +02:00
Florian Märkl
8c8f0a6516
Add &b command
2018-07-21 16:29:12 +02:00
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