Beispiel #1
0
uint32_t flux_matchtag_avail (flux_t h, int flags)
{
    if ((flags & FLUX_MATCHTAG_GROUP))
        return tagpool_getattr (h->tagpool, TAGPOOL_ATTR_GROUP_AVAIL);
    else
        return tagpool_getattr (h->tagpool, TAGPOOL_ATTR_REGULAR_AVAIL);
}
Beispiel #2
0
static void report_leaked_matchtags (struct tagpool *tp)
{
    uint32_t reg = tagpool_getattr (tp, TAGPOOL_ATTR_REGULAR_SIZE) -
                   tagpool_getattr (tp, TAGPOOL_ATTR_REGULAR_AVAIL);
    uint32_t grp = tagpool_getattr (tp, TAGPOOL_ATTR_GROUP_SIZE) -
                   tagpool_getattr (tp, TAGPOOL_ATTR_GROUP_AVAIL);
    if (reg > 0 || grp > 0)
        fprintf (stderr,
                 "MATCHDEBUG: pool destroy with reg=%d grp=%d allocated\n",
                 reg, grp);
}