ged_thread.h 813 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2015 MediaTek Inc.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __GED_THREAD_H__
  14. #define __GED_THREAD_H__
  15. #include "ged_type.h"
  16. typedef void* GED_THREAD_HANDLE;
  17. typedef void (*GED_THREAD_FUNC)(void*);
  18. GED_ERROR ged_thread_create(GED_THREAD_HANDLE *phThread, const char* szThreadName, GED_THREAD_FUNC pFunc, void* pvData);
  19. void ged_thread_destroy(GED_THREAD_HANDLE hThread);
  20. #endif