Thread: Thread safeness of OpenGL

  1. #16
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    >OpenGL has no RC passed into most functions. It just set's the "current" one globally.

    it doesnt need one to be passed by function, nor could it an easily and remain OS/Hardware independant.

    >glFlush(); // flush which one?

    the one that was last made current by wglMakeCurrent(HDC hdc, HGLRC hrc)

    eg. the current RC.

    this is pretty much the most efficient and portable way to do it with procedural programming.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  2. #17
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    but threads are non-procedural and that's what we've been talking about. if you can't break from a sequential order, you can't be multithreaded.

    I'm not saying that OpenGL is bad, just that it's not threadsafe
    always looking, make an offer. get me out of this place.

  3. #18
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    >but threads are non-procedural and that's what we've been talking about.

    WHAT ARE YOU TALKING ABOUT? of course they are!!

    >just that it's not threadsafe

    maybe im not explaing well, im bad at that, but OpenGL is thread safe.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Terminating secondary thread from another thread
    By wssoh85 in forum C++ Programming
    Replies: 13
    Last Post: 12-19-2008, 05:14 AM
  2. Thread Prog in C language (seg fault)
    By kumars in forum C Programming
    Replies: 22
    Last Post: 10-09-2008, 01:17 PM
  3. Multithread pthread with OpenGL
    By parad0x13 in forum C++ Programming
    Replies: 8
    Last Post: 07-24-2008, 03:04 PM
  4. multithreading question
    By ichijoji in forum C++ Programming
    Replies: 7
    Last Post: 04-12-2005, 10:59 PM
  5. Replies: 12
    Last Post: 05-17-2003, 05:58 AM