missing support for threads in c++11?
  • Order of the Butterfly
    Order of the Butterfly
    eliot
    Posts: 452 from 2004/4/15
    Is threading not support by g++ 5.3 on morphos?

    I get the following compiler error:

    Code:

    lib/src/SDLView.cpp: In member function 'void exdevgfx::SDLView::run()':
    lib/src/SDLView.cpp:160:9: error: 'std::this_thread' has not been declared
    std::this_thread::sleep_for(msToWait);


    #include <thread> is not missing.
    On linux and mac os x everything is fine.
    regards
    eliot

    www.exception-dev.de
  • »19.02.17 - 12:07
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1434 from 2003/3/5
    From: Canada
    Quote:

    eliot wrote:
    Is threading not support by g++ 5.3 on morphos?



    C++11 support is incomplete indeed.
  • »19.02.17 - 15:01
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    eliot
    Posts: 452 from 2004/4/15
    For now I am using SDL_Delay. Will the c++11 support completed in near future?
    regards
    eliot

    www.exception-dev.de
  • »19.02.17 - 15:13
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1434 from 2003/3/5
    From: Canada
    Quote:

    eliot wrote:
    For now I am using SDL_Delay. Will the c++11 support completed in near future?


    Unless required by WebKit, it seems unlikely to happen.
  • »19.02.17 - 16:56
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 528 from 2007/8/6
    From: SE Queensland
    I'm not entirely sure if this is close enough to what you want to do with threading but there's a fairly straight forward example of how to create a new process and have 'parent' and 'child' processes message back and forth in SDK:Examples/Misc/procmessages.c
    PPC assembly ain't so bad... ;)
  • »19.02.17 - 21:00
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    eliot
    Posts: 452 from 2004/4/15
    thx ausPPC. But I want to use less system dependent functions as possible.
    C++11 defines threading and I thought the current SDK supports this standard.
    regards
    eliot

    www.exception-dev.de
  • »19.02.17 - 21:31
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 604 from 2005/8/27
    From: the land with ...
    Quote:

    eliot wrote:
    thx ausPPC. But I want to use less system dependent functions as possible.
    C++11 defines threading and I thought the current SDK supports this standard.


    There is limited threading support, I think however the problem is that sleep_for() requires nanosleep.


    - CISC
  • »20.02.17 - 08:10
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Posts: 236 from 2013/5/29
    Quote:

    jacadcaps escribió:

    Unless required by WebKit, it seems unlikely to happen.


    So...is anyone updating webkit? :)
    PowerMac G5 and PowerBook G4 with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »20.02.17 - 20:19
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 604 from 2005/8/27
    From: the land with ...
    Actually, I just checked and the reason is simply that the thread interface gets completely disabled since we only provide partial gthread support.


    - CISC
  • »22.02.17 - 19:52
    Profile