Difference between revisions of "GQUEUE"
From uGFX Wiki
(Created page with "The GQUEUE modules does provide queues and buffers. == Buffers == A pool of buffers can be allocated using <code>gfxBufferAlloc(num, size)</code> where ''num'' is the number...") |
|||
Line 2: | Line 2: | ||
== Buffers == | == Buffers == | ||
− | A pool of buffers can be allocated using <code>gfxBufferAlloc(num, size)</code> where ''num'' is the number of buffers and ''size'' the size per buffer. | + | A pool of buffers can be allocated using <code>gfxBufferAlloc(num, size)</code> where ''num'' is the number of buffers and ''size'' the size per buffer. The created buffer pool is global. It is not possible to have more than one buffer pool. |
+ | |||
+ | Memory once dedicated to be come a buffer cannot be freed anymore. Therefore, the amount and size of the buffers allocated should be chosen carefully. | ||
== Queues == | == Queues == |
Revision as of 23:35, 4 July 2014
The GQUEUE modules does provide queues and buffers.
Buffers
A pool of buffers can be allocated using gfxBufferAlloc(num, size)
where num is the number of buffers and size the size per buffer. The created buffer pool is global. It is not possible to have more than one buffer pool.
Memory once dedicated to be come a buffer cannot be freed anymore. Therefore, the amount and size of the buffers allocated should be chosen carefully.
Queues
Although the queues provided by the GQUEUE module are mainly used internally, these features are still accessible for the user.