Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7314 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h


Ignore:
Timestamp:
Apr 17, 2006, 1:19:20 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: ShellBuffer is now ThreadSafe for printing to it
I must say: SDL_Thread's are way easier than simple pThreads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_buffer.h

    r5784 r7314  
    1010#include <stdarg.h>
    1111#include <list>
     12#include <SDL_thread.h>
    1213
    1314#define      SHELL_BUFFER_SIZE       16384         //!< The Size of the input-buffers (should be large enough to carry any kind of input)
     
    6061
    6162    unsigned long            lineCount;                          //!< how many Lines have been written out so far.
     63
     64    static SDL_mutex*        bufferMutex;                        //!< Only one thread may write into the ShellBuffer at a time.
    6265};
    6366
Note: See TracChangeset for help on using the changeset viewer.