Addition of an arbitary bitmask handling set of functions

New memory deallocation routines for the DCBS
This commit is contained in:
Mark Riddoch
2013-06-28 17:39:43 +02:00
parent 3e8b19733e
commit 8257eadf12
12 changed files with 456 additions and 72 deletions

View File

@ -34,14 +34,15 @@
* Start a polling thread
*
* @param entry The entry point to call
* @param arg The argument to pass the thread entry point
* @return The thread handle
*/
void *
thread_start(void (*entry)())
thread_start(void (*entry)(void *), void *arg)
{
pthread_t thd;
if (pthread_create(&thd, NULL, (void *(*)(void *))entry, NULL) != 0)
if (pthread_create(&thd, NULL, (void *(*)(void *))entry, arg) != 0)
{
return NULL;
}