Exemplo n.º 1
0
static void astacCallback(ASCLIENTPVT clientPvt,asClientStatus status)
{
    char *recordname;

    recordname = (char *)asGetClientPvt(clientPvt);
    printf("astac callback %s: status=%d",recordname,status);
    printf(" get %s put %s\n",(asCheckGet(clientPvt) ? "Yes" : "No"),
	(asCheckPut(clientPvt) ? "Yes" : "No"));
}
Exemplo n.º 2
0
static void showChanList ( 
    struct client * client, ELLLIST * pList )
{
    unsigned i = 0u;
    struct channel_in_use * pciu;
    epicsMutexMustLock ( client->chanListLock );
    pciu = (struct channel_in_use *) pList->node.next;
    while ( pciu ){
        printf( "\t%s(%d%c%c)", 
            pciu->addr.precord->name,
            ellCount ( &pciu->eventq ),
            asCheckGet ( pciu->asClientPVT ) ? 'r': '-',
            rsrvCheckPut ( pciu ) ? 'w': '-' );
        pciu = ( struct channel_in_use * ) ellNext ( &pciu->node );
        if(  ++i % 3u == 0u ) {
            printf ( "\n" );
        }
    }
    epicsMutexUnlock ( client->chanListLock );
}