![]() |
Oyranos
0.9.7
Oyranos is a full featured Color Management System
|
threads module for Oyranos More...
#include "oyCMM_s.h"
#include "oyCMMapi10_s_.h"
#include "oyranos_cmm.h"
#include "oyranos_i18n.h"
#include "oyranos_string.h"
#include "oyranos_threads.h"
#include <pthread.h>
#include <unistd.h>
Macros | |
#define | CMM_NICK "trds" |
Functions | |
int | oyJob_Add_ (oyJob_s **job_, int finished, int flags) |
Add and run a job. More... | |
int | trdsCMMMessageFuncSet (oyMessage_f trds_msg_func) |
int | oyThreadCreate (void *(*func)(void *ptr), void *data, oyThread_t *thread) |
start a thread with a given function More... | |
int | trdsCMMInit (oyStruct_s *filter OY_UNUSED) |
API requirement. More... | |
int | trdsMOptions_Handle (oyOptions_s *options OY_UNUSED, const char *command, oyOptions_s **result OY_UNUSED) |
const char * | trdsInfoGetTextThreadsC (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED) |
const char * | trdsInfoGetText (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED) |
Variables | |
oyCMMapi10_s_ | trds_api10_cmm |
trdsead oyCMMapi10_s implementation More... | |
oyCMM_s | trds_cmm_module |
trds module infos More... | |
threads module for Oyranos
Oyranos is an open source Color Management System
#define CMM_NICK "trds" |
The main goal of this module is to provide a means to replace threading / job functionality and switch to pthreads/windows/whatever model as the main application needs it. The implementation provides a reasonable set of functions for objects of type oyJob_s.
int oyJob_Add_ | ( | oyJob_s ** | job_, |
int | finished, | ||
int | flags | ||
) |
Add and run a job.
int oyThreadCreate | ( | void *(*)(void *ptr) | func, |
void * | data, | ||
oyThread_t * | thread | ||
) |
start a thread with a given function
int trdsCMMInit | ( | oyStruct_s *filter | OY_UNUSED | ) |
API requirement.
Function trdsCMMInit
int trdsCMMMessageFuncSet | ( | oyMessage_f | message_func | ) |
Function trdsCMMMessageFuncSet
const char* trdsInfoGetText | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s *context | OY_UNUSED | ||
) |
This function implements oyCMMinfoGetText_f.
const char* trdsInfoGetTextThreadsC | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s *context | OY_UNUSED | ||
) |
This function implements oyCMMinfoGetText_f.
int trdsMOptions_Handle | ( | oyOptions_s *options | OY_UNUSED, |
const char * | command, | ||
oyOptions_s **result | OY_UNUSED | ||
) |
This function implements oyMOptions_Handle_f.
oyCMMapi10_s_ trds_api10_cmm |
trdsead oyCMMapi10_s implementation
@instance trds_api10_cmm
handlers for threading
oyCMM_s trds_cmm_module |
trds module infos
@instance trds_cmm_module