It is unsafe to perform any kind of r2 operations in parallel. This means thats that all access to r2 api must be controlled by a lock (this is already being done). Any kind of access to r2 API can be blocking for unknown amount of time. No r2 API can be done in GUI thread.
- run all interaction with r2 through r2_tasks except the task launching and some setup code
- required r2 task changes
- runing c function as task
- threadpool