~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/blenlib/BLI_threads.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *
3
 
 * $Id: BLI_threads.h 28411 2010-04-25 10:49:13Z blendix $
4
3
 *
5
4
 * ***** BEGIN GPL LICENSE BLOCK *****
6
5
 *
28
27
 * ***** END GPL LICENSE BLOCK *****
29
28
 */
30
29
 
31
 
#ifndef BLI_THREADS_H
32
 
#define BLI_THREADS_H 
 
30
#ifndef __BLI_THREADS_H__
 
31
#define __BLI_THREADS_H__ 
 
32
 
 
33
/** \file BLI_threads.h
 
34
 *  \ingroup bli
 
35
 */
33
36
 
34
37
#include <pthread.h>
35
38
 
53
56
void    BLI_end_threads         (struct ListBase *threadbase);
54
57
int BLI_thread_is_main(void);
55
58
 
 
59
 
 
60
void BLI_begin_threaded_malloc(void);
 
61
void BLI_end_threaded_malloc(void);
 
62
 
56
63
/* System Information */
57
64
 
58
65
int             BLI_system_thread_count(void); /* gets the number of threads the system can make use of */
67
74
#define LOCK_CUSTOM1    3
68
75
#define LOCK_RCACHE             4
69
76
#define LOCK_OPENGL             5
 
77
#define LOCK_NODES              6
 
78
#define LOCK_MOVIECLIP  7
70
79
 
71
80
void    BLI_lock_thread(int type);
72
81
void    BLI_unlock_thread(int type);
121
130
 
122
131
typedef struct ThreadQueue ThreadQueue;
123
132
 
124
 
ThreadQueue *BLI_thread_queue_init();
 
133
ThreadQueue *BLI_thread_queue_init(void);
125
134
void BLI_thread_queue_free(ThreadQueue *queue);
126
135
 
127
136
void BLI_thread_queue_push(ThreadQueue *queue, void *work);