Leaked source code of windows server 2003
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.

31 lines
509 B

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