Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-20 11:02:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-20 11:02:28 +0300
commite63eb6ed2696c5d52b35972ab7a1bbda7b5bdc90 (patch)
tree94ae2928a62f96acd8d78796dd2f900220d5aed8 /source/blender/windowmanager/intern/wm_jobs.c
parent44ca116ca2aec7651e1fdab9cba6f63c244a8f93 (diff)
Cleanup: comment line length (windowmanager)
Diffstat (limited to 'source/blender/windowmanager/intern/wm_jobs.c')
-rw-r--r--source/blender/windowmanager/intern/wm_jobs.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/source/blender/windowmanager/intern/wm_jobs.c b/source/blender/windowmanager/intern/wm_jobs.c
index 6ce9dd70574..a63592f7b60 100644
--- a/source/blender/windowmanager/intern/wm_jobs.c
+++ b/source/blender/windowmanager/intern/wm_jobs.c
@@ -71,27 +71,28 @@
struct wmJob {
struct wmJob *next, *prev;
- /* job originating from, keep track of this when deleting windows */
+ /** Job originating from, keep track of this when deleting windows */
wmWindow *win;
- /* should store entire own context, for start, update, free */
+ /** Should store entire own context, for start, update, free */
void *customdata;
- /* to prevent cpu overhead, use this one which only gets called when job really starts, not in thread */
+ /** To prevent cpu overhead,
+ * use this one which only gets called when job really starts, not in thread */
void (*initjob)(void *);
- /* this runs inside thread, and does full job */
+ /** This runs inside thread, and does full job */
void (*startjob)(void *, short *stop, short *do_update, float *progress);
- /* update gets called if thread defines so, and max once per timerstep */
- /* it runs outside thread, blocking blender, no drawing! */
+ /** Update gets called if thread defines so, and max once per timerstep
+ * it runs outside thread, blocking blender, no drawing! */
void (*update)(void *);
- /* free entire customdata, doesn't run in thread */
+ /** Free entire customdata, doesn't run in thread */
void (*free)(void *);
- /* gets called when job is stopped, not in thread */
+ /** Gets called when job is stopped, not in thread */
void (*endjob)(void *);
- /* running jobs each have own timer */
+ /** Running jobs each have own timer */
double timestep;
wmTimer *wt;
- /* the notifier event timers should send */
+ /** The notifier event timers should send */
unsigned int note, endnote;
/* internal */
@@ -100,19 +101,19 @@ struct wmJob {
short suspended, running, ready, do_update, stop, job_type;
float progress;
- /* for display in header, identification */
+ /** For display in header, identification */
char name[128];
- /* once running, we store this separately */
+ /** Once running, we store this separately */
void *run_customdata;
void (*run_free)(void *);
- /* we use BLI_threads api, but per job only 1 thread runs */
+ /** We use BLI_threads api, but per job only 1 thread runs */
ListBase threads;
double start_time;
- /* ticket mutex for main thread locking while some job accesses
+ /** Ticket mutex for main thread locking while some job accesses
* data that the main thread might modify at the same time */
TicketMutex *main_thread_mutex;
};