Ignore:
Timestamp:
Apr 2, 2013 1:31:30 PM (8 years ago)
Author:
ldelgass
Message:

Add writer thread to nanovis (set USE_THREADS in Makefile), more refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Command.h

    r3597 r3605  
    1414#include <tcl.h>
    1515
     16#include <RpBuffer.h>
     17
     18#include "ResponseQueue.h"
     19
    1620namespace Rappture {
    1721class Buffer;
     
    1923class Volume;
    2024
     25namespace nv {
     26class ReadBuffer;
     27
     28#ifdef USE_THREADS
     29extern void queueResponse(const void *bytes, size_t len,
     30                          Response::AllocationType allocType,
     31                          Response::ResponseType type = Response::DATA);
     32#else
     33extern ssize_t SocketWrite(const void *bytes, size_t len);
     34#endif
     35
     36extern bool SocketRead(char *bytes, size_t len);
     37
     38extern bool SocketRead(Rappture::Buffer &buf, size_t len);
     39
     40extern int processCommands(Tcl_Interp *interp,
     41                           ReadBuffer *inBufPtr,
     42                           int fdOut);
     43
     44extern int handleError(Tcl_Interp *interp,
     45                       int status,
     46                       int fdOut);
     47
     48extern void initTcl(Tcl_Interp *interp, ClientData clientData);
     49}
     50
    2151extern int GetAxisFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr,
    2252                          int *axisVal);
    2353
    24 extern int GetBooleanFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr,
     54extern bool GetBooleanFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr,
    2555                             bool *boolVal);
    2656
     
    3363                            Volume **volume);
    3464
    35 extern Tcl_Interp *initTcl();
    36 
    3765#endif
Note: See TracChangeset for help on using the changeset viewer.