aboutsummaryrefslogtreecommitdiffstats
path: root/thread.h
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
commit7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df (patch)
treec9fe5fa4426d7334d8486a3a7e59c64a43d2ef9e /thread.h
parente4626159694ea6774386faa2f0d2fb517de1eb8b (diff)
downloadlcd4linux-7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df.tar.gz
[lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/thread.h b/thread.h
index 30ea1a9..16b5ecc 100644
--- a/thread.h
+++ b/thread.h
@@ -1,4 +1,4 @@
-/* $Id: thread.h,v 1.3 2004/04/08 10:48:25 reinelt Exp $
+/* $Id: thread.h,v 1.4 2004/06/20 10:09:56 reinelt Exp $
*
* thread handling (mutex, shmem, ...)
*
@@ -26,6 +26,10 @@
*
*
* $Log: thread.h,v $
+ * Revision 1.4 2004/06/20 10:09:56 reinelt
+ *
+ * 'const'ified the whole source
+ *
* Revision 1.3 2004/04/08 10:48:25 reinelt
* finished plugin_exec
* modified thread handling
@@ -44,13 +48,13 @@
#define _THREAD_H_
int mutex_create (void);
-void mutex_lock (int semid);
-void mutex_unlock (int semid);
-void mutex_destroy (int semid);
+void mutex_lock (const int semid);
+void mutex_unlock (const int semid);
+void mutex_destroy (const int semid);
-int shm_create (void **buffer, int size);
-void shm_destroy (int shmid, void *buffer) ;
+int shm_create (void **buffer, const int size);
+void shm_destroy (const int shmid, const void *buffer);
-int thread_create (char *name, void (*thread)(void *data), void *data);
+int thread_create (const char *name, void (*thread)(void *data), void *data);
#endif