hiroyuki-sato / ucx

Unified Communication X (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group):
http://www.openucx.org
Other
2 stars 0 forks source link

ucs/sys/thread.c unknown type name 'timer_t error #10

Open hiroyuki-sato opened 5 years ago

hiroyuki-sato commented 5 years ago
  CC       async/libucs_la-thread.lo
In file included from async/thread.c:12:
In file included from async/async_int.h:10:
In file included from async/async.h:11:
async/signal.h:21:5: error: unknown type name 'timer_t'; did you mean 'time_t'?
    timer_t             timer;
    ^~~~~~~
    time_t

https://github.com/openucx/ucx/blob/master/src/ucs/async/signal.h#L21

typedef struct ucs_async_signal_context {
    pid_t               tid;         /* Thread ID to receive the signal */
    int                 block_count; /* How many times this context is blocked */
    pthread_t           pthread;     /* Thread ID for pthreads */
    timer_t             timer;  // <-- Required?
} ucs_async_signal_context_t;
yosefe commented 5 years ago

@hiroyuki-sato is this with UCX master, or with modified version? Is it on MacOS?

hiroyuki-sato commented 5 years ago

Hello, @yosefe . Sorry for the confusion.

This issue is about the modified version. Not related original. I building this on macOS.