Oyranos  0.9.7
Oyranos is a full featured Color Management System
Macros | Functions | Variables
oyranos_cmm_trds.c File Reference

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...
 

Detailed Description

threads module for Oyranos

Oyranos is an open source Color Management System

Copyright:
2014-2016 (C) Kai-Uwe Behrmann

Macro Definition Documentation

◆ CMM_NICK

#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.

Function Documentation

◆ oyJob_Add_()

int oyJob_Add_ ( oyJob_s **  job_,
int  finished,
int  flags 
)

Add and run a job.

Version
Oyranos: 0.9.7
Date
2017/09/22
Since
2014/01/27 (Oyranos: 0.9.5)

◆ oyThreadCreate()

int oyThreadCreate ( void *(*)(void *ptr)  func,
void *  data,
oyThread_t *  thread 
)

start a thread with a given function

Version
Oyranos: 0.9.5
Date
2014/01/25
Since
2014/01/25 (Oyranos: 0.9.5)

◆ trdsCMMInit()

int trdsCMMInit ( oyStruct_s *filter  OY_UNUSED)

API requirement.

Function trdsCMMInit

Version
Oyranos: 0.9.6
Date
2016/04/29
Since
2016/04/29 (Oyranos: 0.9.6)

◆ trdsCMMMessageFuncSet()

int trdsCMMMessageFuncSet ( oyMessage_f  message_func)

Function trdsCMMMessageFuncSet

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01

◆ trdsInfoGetText()

const char* trdsInfoGetText ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01

◆ trdsInfoGetTextThreadsC()

const char* trdsInfoGetTextThreadsC ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01

◆ trdsMOptions_Handle()

int trdsMOptions_Handle ( oyOptions_s *options  OY_UNUSED,
const char *  command,
oyOptions_s **result  OY_UNUSED 
)

This function implements oyMOptions_Handle_f.

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01

Variable Documentation

◆ trds_api10_cmm

oyCMMapi10_s_ trds_api10_cmm
Initial value:
= {
0,0,0,
(oyCMMapi_s*) NULL,
"threads_handler._" CMM_NICK,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)trds_texts_profile_create,
}
@ oyOBJECT_CMM_API10_S
Definition: oyranos_object.h:175
int trdsMOptions_Handle(oyOptions_s *options OY_UNUSED, const char *command, oyOptions_s **result OY_UNUSED)
Definition: oyranos_cmm_trds.c:596
int trdsCMMMessageFuncSet(oyMessage_f trds_msg_func)
Definition: oyranos_cmm_trds.c:582
#define CMM_NICK
Definition: oyranos_cmm_trds.c:42
const char * trdsInfoGetTextThreadsC(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_trds.c:629
int trdsCMMInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_trds.c:567
#define OY_SLASH
Definition: oyranos_definitions.h:129
#define OY_TYPE_STD
Definition: oyranos_definitions.h:141
#define OY_DOMAIN_INTERNAL
Definition: oyranos_definitions.h:139
#define OY_TOP_SHARED
Definition: oyranos_definitions.h:133
the basic API interface
Definition: oyCMMapi_s.h:88

trdsead oyCMMapi10_s implementation

@instance trds_api10_cmm

handlers for threading

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01

◆ trds_cmm_module

oyCMM_s trds_cmm_module
Initial value:
= {
0,0,0,
"0.6",
(char**)trds_texts,
&trds_icon,
}
@ oyOBJECT_CMM_INFO_S
Definition: oyranos_object.h:161
oyCMMapi10_s_ trds_api10_cmm
trdsead oyCMMapi10_s implementation
Definition: oyranos_cmm_trds.c:670
const char * trdsInfoGetText(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_trds.c:704
#define OYRANOS_VERSION
Definition: oyranos_version.h:11

trds module infos

@instance trds_cmm_module

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01