github.com/moontrade/unsafe@v0.9.1/cgo/internal/trampoline/trampoline.h (about)

     1  #ifndef __MOONTRADE_WORKER_H
     2  #define __MOONTRADE_WORKER_H
     3  
     4  #include <assert.h>
     5  #include <stdbool.h>
     6  #include <stddef.h>
     7  #include <stdint.h>
     8  #include <stdio.h>
     9  #include <stdlib.h>
    10  #include <time.h>
    11  #include <pthread.h>
    12  
    13  #ifdef __cplusplus
    14  extern "C" {
    15  #endif
    16  
    17  #include <stdio.h>
    18  #include <time.h>
    19  #include <unistd.h>
    20  
    21  void moontrade_stub();
    22  
    23  typedef void moontrade_trampoline_handler(size_t arg0, size_t arg1);
    24  
    25  void moontrade_trampoline(size_t fn, size_t arg0, size_t arg1);
    26  
    27  void moontrade_sleep(size_t arg0, size_t arg1);
    28  
    29  #ifdef __cplusplus
    30  } // extern "C"
    31  #endif
    32  
    33  #endif // #ifdef __MOONTRADE_WORKER_H