|
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.
Referenced by trdsInfoGetText(), and trdsMOptions_Handle().
| int oyJob_Add_ | ( | oyJob_s ** | job_, |
| int | finished, | ||
| int | flags | ||
| ) |
Add and run a job.
References oyJob_s::flags_, oyJob_s::id_, oyStructList_s::oy_, oyBlob_s::oyBlob_New(), oyBlob_s::oyBlob_SetFromStatic(), oyObject_Lock(), oyObject_UnLock(), oyStructList_s::oyStructList_MoveIn(), and oyJob_s::status_done_.
Referenced by trdsMOptions_Handle().
| 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.
References CMM_NICK, oyNAME_NAME, and oyNAME_NICK.
| const char* trdsInfoGetTextThreadsC | ( | const char * | select, |
| oyNAME_e | type, | ||
| oyStruct_s *context | OY_UNUSED | ||
| ) |
This function implements oyCMMinfoGetText_f.
References oyNAME_NAME, and oyNAME_NICK.
| int trdsMOptions_Handle | ( | oyOptions_s *options | OY_UNUSED, |
| const char * | command, | ||
| oyOptions_s **result | OY_UNUSED | ||
| ) |
This function implements oyMOptions_Handle_f.
References CMM_NICK, oyFilterRegistrationMatch(), oyJob_Add_(), and oyJob_s::oyJobHandlingSet().
| oyCMMapi10_s_ trds_api10_cmm |
trdsead oyCMMapi10_s implementation
trds_api10_cmm handlers for threading
| oyCMM_s trds_cmm_module |
trds module infos
trds_cmm_module