ThreadOperationQueue.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Tencent is pleased to support the open source community by making Mars available.
  2. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
  3. // Licensed under the MIT License (the "License"); you may not use this file except in
  4. // compliance with the License. You may obtain a copy of the License at
  5. // http://opensource.org/licenses/MIT
  6. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  7. // distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  8. // either express or implied. See the License for the specific language governing permissions and
  9. // limitations under the License.
  10. //
  11. // ThreadOperationQueue.h
  12. // MicroMessenger
  13. //
  14. // Created by yerungui on 12-12-18.
  15. //
  16. #ifndef __MicroMessenger__ThreadOperationQueue__
  17. #define __MicroMessenger__ThreadOperationQueue__
  18. #import <Foundation/Foundation.h>
  19. @interface ThreadQueue : NSObject
  20. {}
  21. +(BOOL) RunWithTarget:(id)target selector:(SEL)sel object:(id)arg;
  22. @end
  23. extern "C" BOOL RunWithTarget(void (*_funp)(void*), void* _arg);
  24. extern "C" BOOL RunWithTargetNoParam(void (*_fun)());
  25. #endif /* defined(__MicroMessenger__ThreadOperationQueue__) */