| <h2 >The <code>upc_all_alloc</code> </h2> |
| |
| <h4>Synopsis</h4> |
| <pre> |
| #include <upc.h> |
| shared void *upc_all_alloc(size_t nblocks, |
| size_t nbytes); |
| </pre> |
| <p> |
| <h4>Description</h4> |
| |
| <p> |
| The <code>upc_all_alloc </code> function allocates shared space compatible with the following |
| declaration: |
| <p><code> |
| shared [nbytes] char[nblocks * nbytes]. |
| </code></p> |
| <p> |
| The <code>upc_all_alloc </code> function returns the same pointer value on all threads. |
| If nblocks*nbytes is zero, the result is a null pointer-to-shared. |
| <p>The dynamic lifetime of an allocated object extends from the time any thread |
| completes the call to <code>upc_all_alloc </code> until any thread has deallocated the |
| object. |
| |
| <p>  |
| <p>  |
| <p><a href="terms.html">Terms, definitions, and symbols</a><br> |
| <p><a href="index.html">Back to index of all UPC functions</a> |