Initial original import from: fuse-2.4.2-2.fc4
[captive.git] / src / libcaptive / halcaptive / spinlock.c
index 5f50aff..024e80d 100644 (file)
 
 
 /**
- * KeAcquireSpinLock:
- * @SpinLock: Spinlock to acquire
- * @OldIrql: Returns the previous irql
- *
- * Acquires a spinlock. Currently libcaptive doesn't use multithreading
- * and thus this function is a NOP now. #GMutex would be needed otherwise.
- */
-VOID STDCALL KeAcquireSpinLock(PKSPIN_LOCK SpinLock,PKIRQL OldIrql)
-{
-       /* TODO:thread */
-       /* reactos/hal/halx86/irql.c/CurrentIrql is initialized to HIGH_LEVEL */
-       *OldIrql=PASSIVE_LEVEL;
-}
-
-
-/**
  * KeAcquireSpinLockAtDpcLevel:
  * @SpinLock: Spinlock to acquire
  *
@@ -46,21 +30,7 @@ VOID STDCALL KeAcquireSpinLock(PKSPIN_LOCK SpinLock,PKIRQL OldIrql)
  * Currently libcaptive doesn't use multithreading
  * and thus this function is a NOP now. #GMutex would be needed otherwise.
  */
-VOID STDCALL KeAcquireSpinLockAtDpcLevel(PKSPIN_LOCK SpinLock)
-{
-       /* TODO:thread */
-}
-
-
-/**
- * KeReleaseSpinLock:
- * @SpinLock: Spinlock to release
- * @NewIrql: Irql level before acquiring the spinlock
- *
- * Releases a spinlock. Currently libcaptive doesn't use multithreading
- * and thus this function is a NOP now. #GMutex would be needed otherwise.
- */
-VOID STDCALL KeReleaseSpinLock(PKSPIN_LOCK SpinLock,KIRQL NewIrql)
+VOID KeAcquireSpinLockAtDpcLevel(PKSPIN_LOCK SpinLock)
 {
        /* TODO:thread */
 }
@@ -75,7 +45,7 @@ VOID STDCALL KeReleaseSpinLock(PKSPIN_LOCK SpinLock,KIRQL NewIrql)
  * Currently libcaptive doesn't use multithreading
  * and thus this function is a NOP now. #GMutex would be needed otherwise.
  */
-VOID STDCALL KeReleaseSpinLockFromDpcLevel(PKSPIN_LOCK SpinLock)
+VOID KeReleaseSpinLockFromDpcLevel(PKSPIN_LOCK SpinLock)
 {
        /* TODO:thread */
 }