@@ -146,25 +146,68 @@ vips_configure_class_init( VipsConfigureClass *class )
146
146
G_STRUCT_OFFSET ( VipsConfigure , untrusted_block ),
147
147
FALSE );
148
148
149
- VIPS_ARG_STRING ( class , "operation_block" , 2 ,
149
+ VIPS_ARG_STRING ( class , "operation_block" , 3 ,
150
150
_ ( "Block operation" ),
151
151
_ ( "Block an operation (and any subclasses) from running" ),
152
152
VIPS_ARGUMENT_OPTIONAL_INPUT ,
153
153
G_STRUCT_OFFSET ( VipsConfigure , operation_block ),
154
154
NULL );
155
155
156
- VIPS_ARG_STRING ( class , "operation_unblock" , 2 ,
156
+ VIPS_ARG_STRING ( class , "operation_unblock" , 4 ,
157
157
_ ( "Unblock operation" ),
158
158
_ ( "Unblock an operation (and any subclasses) from running" ),
159
159
VIPS_ARGUMENT_OPTIONAL_INPUT ,
160
160
G_STRUCT_OFFSET ( VipsConfigure , operation_unblock ),
161
161
NULL );
162
162
163
+ VIPS_ARG_BOOL ( class , "leak" , 5 ,
164
+ _ ( "Leak" ),
165
+ _ ( "Report any leaks on exit" ),
166
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
167
+ G_STRUCT_OFFSET ( VipsConfigure , leak ),
168
+ FALSE );
169
+
170
+ VIPS_ARG_BOOL ( class , "profile" , 5 ,
171
+ _ ( "Profile" ),
172
+ _ ( "Write profiling data on exit" ),
173
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
174
+ G_STRUCT_OFFSET ( VipsConfigure , profile ),
175
+ FALSE );
176
+
177
+ VIPS_ARG_INT ( class , "concurrency" , 5 ,
178
+ _ ( "Concurrency" ),
179
+ _ ( "Set threadpool size" ),
180
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
181
+ G_STRUCT_OFFSET ( VipsConfigure , concurrency ),
182
+ -1 );
183
+
184
+
185
+ /* Max size of pipe.
186
+ */
187
+ int64 pipe_read_limit ;
188
+
189
+ /* Trace libvips operation cache actions.
190
+ */
191
+ gboolean cache_trace ;
192
+
193
+ /* Number of recent operations to cache.
194
+ */
195
+ int cache_max ;
196
+
197
+ /* Maximum memory to use for operation caching.
198
+ */
199
+ int64 cache_max_mem ;
200
+
201
+ /* Maximum number of open files we allow in the cache.
202
+ */
203
+ int cache_max_files ;
204
+
163
205
}
164
206
165
207
static void
166
208
vips_configure_init ( VipsConfigure * configure )
167
209
{
210
+ configure -> concurrency = -1 ;
168
211
}
169
212
170
213
/**
0 commit comments