summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread_spin.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-11-12 10:26:36 +0000
committerbernard.xiong <[email protected]>2010-11-12 10:26:36 +0000
commit25f50375ef71f2aa4928fbf814973f118ed1fadd (patch)
treee57c94ce971d50d9c7c3f1bfcb73b34d4382a788 /components/pthreads/pthread_spin.c
parent7018ab0661e5a5c4be00283a5ab9eabc5d3ab0ee (diff)
add initial pthread implementation.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1044 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/pthread_spin.c')
-rw-r--r--components/pthreads/pthread_spin.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/components/pthreads/pthread_spin.c b/components/pthreads/pthread_spin.c
new file mode 100644
index 0000000000..4332ec1db8
--- /dev/null
+++ b/components/pthreads/pthread_spin.c
@@ -0,0 +1,26 @@
+#include "pthread_spin.h"
+
+int pthread_spin_init (pthread_spinlock_t *lock, int pshared)
+{
+ return 0;
+}
+
+int pthread_spin_destroy (pthread_spinlock_t *lock)
+{
+ return 0;
+}
+
+int pthread_spin_lock (pthread_spinlock_t * lock)
+{
+ return 0;
+}
+
+int pthread_spin_trylock (pthread_spinlock_t * lock)
+{
+ return 0;
+}
+
+int pthread_spin_unlock (pthread_spinlock_t * lock)
+{
+ return 0;
+}