Ignore:
Timestamp:
Dec 29, 2016, 8:35:20 PM (2 years ago)
Author:
cameron
Message:

Add pthread create, join and exit support into CBuilder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.h

    r5239 r5242  
    4949    void CreateMemZero(Value * ptr, Value * size, const unsigned alignment = 1);
    5050   
     51   
     52    // Create calls to Posix thread (pthread.h) functions.
     53    //
     54    //  int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
     55    //                    void *(*start_routine)(void*), void *arg);
     56    Value * CreatePThreadCreateCall(Value * thread, Value * attr, Function * start_routine, Value * arg);
     57    //  void pthread_exit(void *value_ptr);
     58    Value * CreatePThreadExitCall(Value * value_ptr);
     59    //  int pthread_join(pthread_t thread, void **value_ptr);
     60    Value * CreatePThreadJoinCall(Value * thread, Value * value_ptr);
     61   
     62   
    5163    void CallPrintRegister(const std::string & regName, Value * const value);
    5264    void CallPrintInt(const std::string & name, Value * const value);
Note: See TracChangeset for help on using the changeset viewer.