Generic - Definition.
More...
#include "generic.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <math.h>
#include <Windows.h>
#include <unistd.h>
Detailed Description
Function Documentation
static int do_nothing_printf |
( |
char const * |
format, |
|
|
|
... |
|
) |
| [static] |
char* vl_configuration_to_string_copy |
( |
| ) |
|
- Returns:
- a new string with the library configuration.
The function returns a new string with a human readable rendition of the library configuration.
static void vl_constructor |
( |
| ) |
[static] |
static void vl_destructor |
( |
| ) |
[static] |
double vl_get_cpu_time |
( |
| ) |
|
- Returns:
- random number generator.
The function returns a pointer to the random number genrator for this thread.
char const* vl_get_version_string |
( |
| ) |
|
- Returns:
- library version string
The function locks VLFeat global state mutex.
The mutex is recursive: locking multiple times from the same thread is a valid operations, but requires an equivalent number of calls to vl_unlock_state.
- See also:
- vl_unlock_state
void vl_set_alloc_func |
( |
void *(*)(size_t) |
malloc_func, |
|
|
void *(*)(void *, size_t) |
realloc_func, |
|
|
void *(*)(size_t, size_t) |
calloc_func, |
|
|
void(*)(void *) |
free_func |
|
) |
| |
- Parameters:
-
malloc_func | pointer to malloc . |
realloc_func | pointer to realloc . |
calloc_func | pointer to calloc . |
free_func | pointer to free . |
int vl_set_last_error |
( |
int |
error, |
|
|
char const * |
errorMessage, |
|
|
|
... |
|
) |
| |
The function sets the code and optionally the error message of the last encountered error. errorMessage is the message format. It uses the printf
convention and is followed by the format arguments. The maximum lenght of the error message is given by VL_ERR_MSG_LEN (longer messages are truncated).
Passing NULL
as errorMessage sets the error message to the empty string.
- Parameters:
-
error | error code. |
errorMessage | error message format string. |
... | format string arguments. |
- Returns:
- error code.
- Parameters:
-
printf_func | pointer to printf . Let print_func be NULL to disable printf. |
The function returns the processor time elapsed since vl_tic was called last.
- Returns:
- elapsed time in seconds.
The function unlocks VLFeat global state mutex.
- See also:
- vl_lock_state
Variable Documentation
---------------------------------------------------------------