Exemplo n.º 1
0
/*
 * Resume a suspended service.
 */
void svc_resume( struct service *sp )
{
   const char *func = "svc_resume" ;

   FD_SET( SVC_FD( sp ), &ps.rws.socket_mask ) ;
   ps.rws.active_services++ ;
   if ( debug.on )
      msg( LOG_DEBUG, func, "Resumed service %s", SVC_ID( sp ) ) ;
   RESUME( sp ) ;
}
Exemplo n.º 2
0
void* thr1_1_job ()
{
	RETURN_CODE_TYPE ret;
	while (1)
	{
		printf("Partition n. 1 - Thread n.1\n");

		/***************************************************************/
		/* Message processing code should be placed here               */
		/***************************************************************/

		printf("1: -- do something\n\t\t1 :: Waiting on an event\n\n");
		RESUME (arinc_threads[2], &(ret));
		PERIODIC_WAIT (&(ret));
	}
}
Exemplo n.º 3
0
void* thr1_3_job ()
{
	RETURN_CODE_TYPE ret;
	while (1)
	{
		printf("Partition n. 1 - Thread n.3\n");

		/***************************************************************/
		/* Message processing code should be placed here               */
		/***************************************************************/

		printf(" 3: -- do something\n");
		printf(" 3: Setting an event UP\n\n");
		SET_EVENT (pok_arinc653_events_ids[0], &(ret));
		printf(" 3: Event SET -- Resume sporadic\n\n");
		RESUME (arinc_threads[4], &(ret));
		PERIODIC_WAIT (&(ret));
	}
}
Exemplo n.º 4
0
Arquivo: uvc.c Projeto: whtc123/libuvc
void uvc_resume(uvc_ctx *ctx){
	uvc_thread_env *env=uvc_get_env();
	ctx->status = UVC_STATUS_RUNING;
	env->runing_task = ctx;
	RESUME(env, ctx);
}