From 8f881e2d04ed179d32c99f22c91397e186d94caa Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 24 Aug 2005 23:05:07 +0000 Subject: [PATCH] implemented IsThreadAFiber() svn path=/trunk/; revision=17525 --- reactos/lib/kernel32/kernel32.def | 1 + reactos/lib/kernel32/thread/fiber.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/reactos/lib/kernel32/kernel32.def b/reactos/lib/kernel32/kernel32.def index e76e2316eb0..bdaabdc7f55 100644 --- a/reactos/lib/kernel32/kernel32.def +++ b/reactos/lib/kernel32/kernel32.def @@ -586,6 +586,7 @@ IsDebuggerPresent@0 IsProcessInJob@12 IsProcessorFeaturePresent@4 IsSystemResumeAutomatic@0 +IsThreadAFiber@0 IsValidCodePage@4 IsValidLanguageGroup@8 IsValidLocale@8 diff --git a/reactos/lib/kernel32/thread/fiber.c b/reactos/lib/kernel32/thread/fiber.c index aefd2d41542..10881d3d104 100644 --- a/reactos/lib/kernel32/thread/fiber.c +++ b/reactos/lib/kernel32/thread/fiber.c @@ -235,6 +235,17 @@ DeleteFiber(LPVOID lpFiber) MEM_RELEASE); } +/* + * @implemented + */ +BOOL +WINAPI +IsThreadAFiber(VOID) +{ + return NtCurrentTeb()->HasFiberData; +} + + __declspec(noreturn) VOID WINAPI