added change priority call

This commit is contained in:
Jeff Hill
2001-08-29 17:52:38 +00:00
parent fc1d377622
commit becfc8ca3c
2 changed files with 10 additions and 0 deletions

View File

@@ -972,6 +972,15 @@ int epicsShareAPI db_start_events (
return DB_EVENT_OK;
}
/*
* db_event_change_priority()
*/
void epicsShareAPI db_event_change_priority ( dbEventCtx ctx, unsigned epicsPriority )
{
struct event_user * evUser = ( struct event_user * ) ctx;
epicsThreadSetPriority ( evUser->taskid, epicsPriority );
}
/*
* db_event_flow_ctrl_mode_on()
*/

View File

@@ -74,6 +74,7 @@ epicsShareFunc int epicsShareAPI db_add_extra_labor_event (
dbEventCtx ctx, EXTRALABORFUNC *func, void *arg);
epicsShareFunc int epicsShareAPI db_flush_extra_labor_event (dbEventCtx);
epicsShareFunc int epicsShareAPI db_post_extra_labor (dbEventCtx ctx);
epicsShareFunc void epicsShareAPI db_event_change_priority ( dbEventCtx ctx, unsigned epicsPriority );
typedef void EVENTFUNC (void *user_arg, struct dbAddr *paddr,
int eventsRemaining, struct db_field_log *pfl);