Merge lp://staging/~matttbe/cairo-dock-core/task-one-thread-async-new-struct into lp://staging/~cairo-dock-team/cairo-dock-core/cairo-dock

Proposed by Matthieu Baerts
Status: Needs review
Proposed branch: lp://staging/~matttbe/cairo-dock-core/task-one-thread-async-new-struct
Merge into: lp://staging/~cairo-dock-team/cairo-dock-core/cairo-dock
Diff against target: 384 lines (+182/-75)
4 files modified
src/gldit/cairo-dock-task.c (+165/-70)
src/gldit/cairo-dock-task.h (+17/-2)
src/implementations/cairo-dock-graph.c (+0/-1)
src/implementations/cairo-dock-graph.h (+0/-2)
To merge this branch: bzr merge lp://staging/~matttbe/cairo-dock-core/task-one-thread-async-new-struct
Reviewer Review Type Date Requested Status
Fabounet Pending
Review via email: mp+120581@code.staging.launchpad.net

Description of the change

A better implementation of the task.
Now thread's datas are separated in order to better prevent crash if the task is discarded and allow a task to be stopped before the end of 'get_data' and re-launch a new thread.

To post a comment you must log in.
1182. By Matthieu Baerts

Task:
 * fixed a typo with the check of bDiscard
 * cancel: check if pThread has not been freeed before talking with it
 * convert g_print to cd_debug

1183. By Matthieu Baerts

Task: be sure to cancel the next iteration if 'pTask->iPeriod == 0'

Unmerged revisions

1183. By Matthieu Baerts

Task: be sure to cancel the next iteration if 'pTask->iPeriod == 0'

1182. By Matthieu Baerts

Task:
 * fixed a typo with the check of bDiscard
 * cancel: check if pThread has not been freeed before talking with it
 * convert g_print to cd_debug

1181. By Matthieu Baerts

Task: only used one thread and the thread clean itself to avoid crash

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches