¿Por qué error de lanzamiento timer_create para SIGEV_THREAD en solaris 10?
Escribí una parte usando timer_create para configurar el temporizador para invocar un hilo en el que configuré sigev_notify como SIGEV_THREAD, me está dando el error EINVAL (argumento no válido) pero cuando configuro sigev_notify como código SIGEV_SIGNAL funciona bien.
Este código funciona en todos los sistemas operativos, incluso en Solaris 11, pero en Solaris 10 me da un error.
código dado a continuación:
{
int status =0;
struct itimerspec ts;
struct sigevent se;
se.sigev_notify = SIGEV_THREAD;
se.sigev_value.sival_int = val;
se.sigev_notify_function = func;
se.sigev_notify_attributes = NULL;
status = timer_create(CLOCK_REALTIME, &se, timer_id);
ts.it_value.tv_sec = abs(delay);
ts.it_value.tv_nsec = (delay-abs(delay)) * 1e09;
ts.it_interval.tv_sec = abs(interval);
ts.it_interval.tv_nsec = (interval-abs(interval)) * 1e09;
status = timer_settime(*timer_id, 0, &ts, 0);
}
Porfavor ayudame a resolver este problema.
Gracias por adelantado...