|
PULSAR
0.1
Parallel Unified Linear Algebra with Systolic Arrays
|
PRT data packet implementation. More...
#include "prt_packet.h"
Go to the source code of this file.
Functions | |
| prt_packet_t * | prt_packet_new (size_t data_size) |
| packet constructor Sets the number of references to one. More... | |
| void | prt_packet_release (prt_packet_t *packet) |
| Release a packet. Decrements the number of active references. Destroys the packet when the last reference is removed. More... | |
PRT data packet implementation.
PULSAR Runtime /pulsar/ Copyright (C) 2012-2013 University of Tennessee.
Definition in file prt_packet.c.
| prt_packet_t* prt_packet_new | ( | size_t | data_size | ) |
packet constructor Sets the number of references to one.
| data_size | size of the packet in bytes |
Definition at line 22 of file prt_packet.c.
References prt_packet_s::data, prt_packet_s::num_refs, and prt_assert.

| void prt_packet_release | ( | prt_packet_t * | packet | ) |
Release a packet. Decrements the number of active references. Destroys the packet when the last reference is removed.
| packet |
Definition at line 42 of file prt_packet.c.
References prt_packet_s::data, prt_packet_s::num_refs, and prt_assert.
