Commit c7a1bce7 authored by Kirill Smelkov's avatar Kirill Smelkov

fixup! time: Move/Port timers to C++/Pyx nogil

This amends commit b073f6df: clang was complaining that _Ticker/_Timer
were forward-declared as class, but later declared as struct:

    ./golang/time.h:107:1: warning: '_Ticker' defined as a struct here but previously declared as a class [-Wmismatched-tags]
    struct _Ticker : object {
    ^
    ./golang/time.h:77:1: note: did you mean struct here?
    class _Ticker;
    ^~~~~
    struct
    ./golang/time.h:140:1: warning: '_Timer' defined as a struct here but previously declared as a class [-Wmismatched-tags]
    struct _Timer : object {
    ^
    ./golang/time.h:78:1: note: did you mean struct here?
    class _Timer;
    ^~~~~
    struct

-> Fix it by using struct. Also used inline style inside refptr.
parent d51bcd7e
......@@ -74,10 +74,8 @@ LIBGOLANG_API void sleep(double dt);
LIBGOLANG_API double now();
class _Ticker;
class _Timer;
typedef refptr<_Ticker> Ticker;
typedef refptr<_Timer> Timer;
typedef refptr<struct _Ticker> Ticker;
typedef refptr<struct _Timer> Timer;
// tick returns channel connected to dt ticker.
//
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment