Skip to content

Commit 096bba9

Browse files
committed
start adding some more configure options
1 parent 2788ba5 commit 096bba9

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

libvips/iofuncs/configure.c

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,25 +146,68 @@ vips_configure_class_init( VipsConfigureClass *class )
146146
G_STRUCT_OFFSET( VipsConfigure, untrusted_block ),
147147
FALSE );
148148

149-
VIPS_ARG_STRING( class, "operation_block", 2,
149+
VIPS_ARG_STRING( class, "operation_block", 3,
150150
_( "Block operation" ),
151151
_( "Block an operation (and any subclasses) from running" ),
152152
VIPS_ARGUMENT_OPTIONAL_INPUT,
153153
G_STRUCT_OFFSET( VipsConfigure, operation_block ),
154154
NULL );
155155

156-
VIPS_ARG_STRING( class, "operation_unblock", 2,
156+
VIPS_ARG_STRING( class, "operation_unblock", 4,
157157
_( "Unblock operation" ),
158158
_( "Unblock an operation (and any subclasses) from running" ),
159159
VIPS_ARGUMENT_OPTIONAL_INPUT,
160160
G_STRUCT_OFFSET( VipsConfigure, operation_unblock ),
161161
NULL );
162162

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+
163205
}
164206

165207
static void
166208
vips_configure_init( VipsConfigure *configure )
167209
{
210+
configure->concurrency = -1;
168211
}
169212

170213
/**

libvips/iofuncs/source.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* A byte source/sink .. it can be a pipe, file descriptor, memory area,
21
* socket, node.js stream, etc.
32
*
43
* 19/6/14

0 commit comments

Comments
 (0)