ucx/mempool.h

changeset 225
a1a068c2c4ef
parent 215
e0853e077770
child 241
661f33ef20d8
equal deleted inserted replaced
224:f9ba63fc6a80 225:a1a068c2c4ef
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2015 Olaf Wintermann. All rights reserved. 4 * Copyright 2016 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
174 * 174 *
175 * The destructor is automatically called when the memory is freed or the 175 * The destructor is automatically called when the memory is freed or the
176 * pool is destroyed. 176 * pool is destroyed.
177 * 177 *
178 * The only requirement for the specified memory is, that it <b>MUST</b> be 178 * The only requirement for the specified memory is, that it <b>MUST</b> be
179 * pooled memory by an UcxMempool or an element-compatible mempool. The pointer 179 * pooled memory by a UcxMempool or an element-compatible mempool. The pointer
180 * to the destructor function is saved in a reserved area before the actual 180 * to the destructor function is saved in a reserved area before the actual
181 * memory. 181 * memory.
182 * 182 *
183 * @param ptr pooled memory 183 * @param ptr pooled memory
184 * @param func a pointer to the destructor function 184 * @param func a pointer to the destructor function

mercurial