* Copyright (C) 2003 Peter Hanappe and others.
*
* This library is free software; you can redistribute it and/or
* Copyright (C) 2003 Peter Hanappe and others.
*
* This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public License
- * as published by the Free Software Foundation; either version 2 of
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
- /* Clear array, in case dynamic pointer reclaiming is being done */
- FLUID_MEMSET (queue->array, 0, elementsize * count);
+ /* Clear array, in case dynamic pointer reclaiming is being done */
+ FLUID_MEMSET(queue->array, 0, elementsize * count);
- queue->totalcount = count;
- queue->elementsize = elementsize;
- queue->count = 0;
- queue->in = 0;
- queue->out = 0;
+ queue->totalcount = count;
+ queue->elementsize = elementsize;
+ fluid_atomic_int_set(&queue->count, 0);
+ queue->in = 0;
+ queue->out = 0;