missing support for threads in c++11?
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 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
  • »19.02.17 - 12:07
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2971 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
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    For now I am using SDL_Delay. Will the c++11 support completed in near future?
    regards
    eliot
  • »19.02.17 - 15:13
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2971 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: 543 from 2007/8/6
    From: Pending...
    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 Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 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
  • »19.02.17 - 21:31
    Profile
  • MorphOS Developer
    CISC
    Posts: 619 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
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Quote:

    jacadcaps escribió:

    Unless required by WebKit, it seems unlikely to happen.


    So...is anyone updating webkit? :)
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »20.02.17 - 20:19
    Profile
  • MorphOS Developer
    CISC
    Posts: 619 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