| Midgard2 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | ||||
MidgardPool; guint midgard_pool_get_max_n_resources (MidgardPool *self); MidgardPool * midgard_pool_set_max_n_resources (MidgardPool *self,guint n_resources,GError **error); guint midgard_pool_get_n_resources (MidgardPool *self); MidgardPool * midgard_pool_push (MidgardPool *self,GObject *object,GError **error);
guint midgard_pool_get_max_n_resources (MidgardPool *self);
|
MidgardPool instance |
Returns : |
maximum number of resources which can be available in the pool |
Since 12.09
MidgardPool * midgard_pool_set_max_n_resources (MidgardPool *self,guint n_resources,GError **error);
Sets maximum number of resources which can be available in pool
|
MidgardPool instance |
|
number of resources |
|
pointer to store returned error |
Returns : |
MidgardPool self reference. [transfer none] |
Since 12.09
guint midgard_pool_get_n_resources (MidgardPool *self);
|
MidgardPool instance |
Returns : |
number of resources available in pool |
Since 12.09
MidgardPool * midgard_pool_push (MidgardPool *self,GObject *object,GError **error);
Adds an object to pool
|
MidgardPool instance |
|
GObject to add to pool |
|
pointer to store returned error |
Returns : |
MidgardPool self reference. [transfer none] |
Since 12.09