implemented IsThreadAFiber()
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 24 Aug 2005 23:05:07 +0000 (23:05 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 24 Aug 2005 23:05:07 +0000 (23:05 +0000)
svn path=/trunk/; revision=17525

reactos/lib/kernel32/kernel32.def
reactos/lib/kernel32/thread/fiber.c

index e76e231..bdaabdc 100644 (file)
@@ -586,6 +586,7 @@ IsDebuggerPresent@0
 IsProcessInJob@12
 IsProcessorFeaturePresent@4
 IsSystemResumeAutomatic@0
+IsThreadAFiber@0
 IsValidCodePage@4
 IsValidLanguageGroup@8
 IsValidLocale@8
index aefd2d4..10881d3 100644 (file)
@@ -235,6 +235,17 @@ DeleteFiber(LPVOID lpFiber)
                         MEM_RELEASE);
 }
 
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+IsThreadAFiber(VOID)
+{
+    return NtCurrentTeb()->HasFiberData;
+}
+
+
 __declspec(noreturn)
 VOID
 WINAPI