diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-11-11 21:00:05 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-11-11 21:00:05 (GMT) |
commit | 0727204e36e919f06e80181482981c3f19669d76 (patch) | |
tree | ada49befbc7d91d21623f5221a2f7001d4b741a2 /src/analysis/disass | |
parent | dc49b249f21c1c8582b9ca8debdd5fbdd15eadae (diff) |
Prepared the next generation of parallel processings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@606 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/disass')
-rw-r--r-- | src/analysis/disass/disassembler.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/analysis/disass/disassembler.c b/src/analysis/disass/disassembler.c index 990ab0f..2f9d293 100644 --- a/src/analysis/disass/disassembler.c +++ b/src/analysis/disass/disassembler.c @@ -116,6 +116,11 @@ G_DEFINE_TYPE(GDelayedDisassembly, g_delayed_disassembly, G_TYPE_DELAYED_WORK); static void g_delayed_disassembly_class_init(GDelayedDisassemblyClass *klass) { + GDelayedWorkClass *work; /* Version en classe parente */ + + work = G_DELAYED_WORK_CLASS(klass); + + work->run = (run_task_fc)g_delayed_disassembly_process; } @@ -134,7 +139,6 @@ static void g_delayed_disassembly_class_init(GDelayedDisassemblyClass *klass) static void g_delayed_disassembly_init(GDelayedDisassembly *disass) { - G_DELAYED_WORK(disass)->run = (run_task_fc)g_delayed_disassembly_process; } @@ -711,6 +715,6 @@ void disassemble_binary(GLoadedBinary *binary, GArchInstruction **instrs, GCodeB g_signal_connect(disass, "work-completed", G_CALLBACK(ack), binary); queue = get_work_queue(); - g_work_queue_schedule_work(queue, G_DELAYED_WORK(disass)); + g_work_queue_schedule_work(queue, G_DELAYED_WORK(disass), DEFAULT_WORK_GROUP); } |