HP Advanced Communications Controllers (ACC) Guía de usuario Pagina 326

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 328
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 325
ZCOM C I/F Library Routines
ZTIMR (3X)
Chapter 4326
ZTIMR (3X)
NAME ztimrEnable/disable ZLU timer
SYNOPSIS
#include <zcom/zcomsys.h>
#include <zcom/zcomcall.h> /* if compiled with ANSI C (recommended) */
int32 ztimr (zap, time)
zaddr_type *zap;
int32 time;
DESCRIPTION Routine ztimr is used to enable or disable the timer on a program ZLU.
When enabled, a timer message is added to the program ZLU queue
every specified time seconds. Timer messages are of type 3 (see ‘type’ in
zread).
The libraries libzcom_c.a and libpthread.a must be linked into the calling
program by giving the options “-lzcom_c -lpthread” to cc(1) or ld(1).
Threads
Considerations
This routine may be called from a multi-threaded application using the
POSIX (1003.1c) kernel threads API package. This routine has the
following characteristics when called by a multi-threaded application:
PAR AMETER S
cancellation point Thread cancellation can occur when a thread
calls this routine.
async-cancel unsafe The calling threads cancelability type must be
PTHREAD_CANCEL_DEFERRED if
cancellation is enabled.
async-signal unsafe It cannot be called from a signal handler.
fork unsafe It cannot be called by a child process after
fork(2) but before exec(2).
zap ZCOM address (program ZLU).
Vista de pagina 325
1 2 ... 321 322 323 324 325 326 327 328

Comentarios a estos manuales

Sin comentarios