Blender V2.61 - r43446
Classes | Functions

wm_jobs.c File Reference

#include <string.h>
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_threads.h"
#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_idprop.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm_window.h"
#include "wm_event_system.h"
#include "wm_event_types.h"
#include "wm.h"

Go to the source code of this file.

Classes

struct  wmJob

Functions

static wmJobwm_job_find (wmWindowManager *wm, void *owner, const char *name)
wmJobWM_jobs_get (wmWindowManager *wm, wmWindow *win, void *owner, const char *name, int flag)
int WM_jobs_test (wmWindowManager *wm, void *owner)
float WM_jobs_progress (wmWindowManager *wm, void *owner)
char * WM_jobs_name (wmWindowManager *wm, void *owner)
int WM_jobs_is_running (wmJob *steve)
void * WM_jobs_get_customdata (wmJob *steve)
void WM_jobs_customdata (wmJob *steve, void *customdata, void(*free)(void *))
void WM_jobs_timer (wmJob *steve, double timestep, unsigned int note, unsigned int endnote)
void WM_jobs_callbacks (wmJob *steve, void(*startjob)(void *, short *, short *, float *), void(*initjob)(void *), void(*update)(void *), void(*endjob)(void *))
static void * do_job_thread (void *job_v)
static void wm_jobs_test_suspend_stop (wmWindowManager *wm, wmJob *test)
void WM_jobs_start (wmWindowManager *wm, wmJob *steve)
static void wm_jobs_kill_job (wmWindowManager *wm, wmJob *steve)
void WM_jobs_stop_all (wmWindowManager *wm)
void WM_jobs_stop (wmWindowManager *wm, void *owner, void *startjob)
void WM_jobs_kill (wmWindowManager *wm, void *owner, void(*startjob)(void *, short int *, short int *, float *))
void wm_jobs_timer_ended (wmWindowManager *wm, wmTimer *wt)
void wm_jobs_timer (const bContext *C, wmWindowManager *wm, wmTimer *wt)
int WM_jobs_has_running (wmWindowManager *wm)

Detailed Description

Definition in file wm_jobs.c.


Function Documentation

static void* do_job_thread ( void *  job_v) [static]
static wmJob* wm_job_find ( wmWindowManager wm,
void *  owner,
const char *  name 
) [static]
void WM_jobs_callbacks ( wmJob steve,
void(*)(void *, short *, short *, float *)  startjob,
void(*)(void *)  initjob,
void(*)(void *)  update,
void(*)(void *)  endjob 
)
void WM_jobs_customdata ( wmJob steve,
void *  customdata,
void(*)(void *)  free 
)
wmJob* WM_jobs_get ( wmWindowManager wm,
wmWindow win,
void *  owner,
const char *  name,
int  flag 
) [read]
void* WM_jobs_get_customdata ( wmJob steve)

Definition at line 208 of file wm_jobs.c.

References wmJob::customdata, and wmJob::run_customdata.

Referenced by seq_proxy_build_job().

int WM_jobs_has_running ( wmWindowManager wm)

Definition at line 515 of file wm_jobs.c.

References ListBase::first, wmWindowManager::jobs, wmJob::next, and wmJob::running.

int WM_jobs_is_running ( wmJob steve)

Definition at line 203 of file wm_jobs.c.

References wmJob::running.

Referenced by seq_proxy_build_job().

void WM_jobs_kill ( wmWindowManager wm,
void *  owner,
void(*)(void *, short int *, short int *, float *)  startjob 
)
static void wm_jobs_kill_job ( wmWindowManager wm,
wmJob steve 
) [static]
char* WM_jobs_name ( wmWindowManager wm,
void *  owner 
)

Definition at line 193 of file wm_jobs.c.

References wmJob::name, NULL, and wm_job_find().

Referenced by uiTemplateRunningJobs().

float WM_jobs_progress ( wmWindowManager wm,
void *  owner 
)

Definition at line 183 of file wm_jobs.c.

References wmJob::flag, NULL, wmJob::progress, wm_job_find(), and WM_JOB_PROGRESS.

Referenced by uiTemplateRunningJobs().

void WM_jobs_start ( wmWindowManager wm,
wmJob steve 
)
void WM_jobs_stop ( wmWindowManager wm,
void *  owner,
void *  startjob 
)
void WM_jobs_stop_all ( wmWindowManager wm)
int WM_jobs_test ( wmWindowManager wm,
void *  owner 
)
static void wm_jobs_test_suspend_stop ( wmWindowManager wm,
wmJob test 
) [static]
void wm_jobs_timer ( const bContext C,
wmWindowManager wm,
wmTimer wt 
)
void WM_jobs_timer ( wmJob steve,
double  timestep,
unsigned int  note,
unsigned int  endnote 
)
void wm_jobs_timer_ended ( wmWindowManager wm,
wmTimer wt 
)

Definition at line 411 of file wm_jobs.c.

References ListBase::first, wmWindowManager::jobs, wmJob::next, wm_jobs_kill_job(), and wmJob::wt.

Referenced by wm_window_free().