Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
497 B

  1. /*++
  2. Copyright (C) 2000-2001 Microsoft Corporation
  3. --*/
  4. #include <windows.h>
  5. #include <stdio.h>
  6. #include <wbemcomn.h>
  7. #include "a51fib.h"
  8. #include <tls.h>
  9. void CALLBACK A51FiberBase(void* p)
  10. {
  11. CFiberTask* pTask = (CFiberTask*)p;
  12. pTask->Execute();
  13. //
  14. // No need to clean up --- it's the job of our caller
  15. //
  16. }
  17. void* CreateFiberForTask(CFiberTask* pTask)
  18. {
  19. return CreateFiber(0, A51FiberBase, pTask);
  20. }
  21. void ReturnFiber(void* pFiber)
  22. {
  23. DeleteFiber(pFiber);
  24. }