"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/edio/aiooutputstream.h" between
openlitespeed-1.7.11.src.tgz and openlitespeed-1.7.12.src.tgz

About: OpenLiteSpeed is a high-performance, lightweight HTTP server with optional HTTP/2 support (open sourve version of the commercial LiteSpeed Web Server). Sources.

aiooutputstream.h  (openlitespeed-1.7.11.src.tgz):aiooutputstream.h  (openlitespeed-1.7.12.src.tgz)
skipping to change at line 112 skipping to change at line 112
, m_flushRequested(0) , m_flushRequested(0)
, m_closeRequested(0) , m_closeRequested(0)
, m_iFlock(0) , m_iFlock(0)
, m_pRecv(NULL) , m_pRecv(NULL)
, m_pSend(NULL) , m_pSend(NULL)
{ {
ls_mutex_setup(&m_mutex); ls_mutex_setup(&m_mutex);
} }
virtual ~AioOutputStream() {}; virtual ~AioOutputStream() {};
int getfd() const { return ls_atomic_fetch_add((int *)&m_fd, int getfd() const { return m_fd; }
0); } void setfd(int fd) { m_fd = fd; }
void setfd(int fd) { ls_atomic_setint(&m_fd, fd ); }
int open(const char *pathname, int flags, mode_t mode); int open(const char *pathname, int flags, mode_t mode);
int close(); int close();
bool isAsync() const { return m_async == 1; } bool isAsync() const { return m_async == 1; }
void setFlock(int l) void setFlock(int l)
{ {
m_iFlock = l; m_iFlock = l;
} }
void setAsync() void setAsync()
skipping to change at line 146 skipping to change at line 146
static short aiokoIsLoaded(); static short aiokoIsLoaded();
#endif #endif
ls_mutex_t &get_mutex() { return m_mutex; } ls_mutex_t &get_mutex() { return m_mutex; }
private: private:
int syncWrite(const char *pBuf, int len); int syncWrite(const char *pBuf, int len);
int flushEx(); int flushEx();
private: private:
ls_atom_int_t m_fd; int m_fd;
char m_async; char m_async;
char m_flushRequested; char m_flushRequested;
char m_closeRequested; char m_closeRequested;
char m_iFlock; char m_iFlock;
ls_mutex_t m_mutex; ls_mutex_t m_mutex;
AutoBuf *m_pRecv; AutoBuf *m_pRecv;
AutoBuf *m_pSend; AutoBuf *m_pSend;
LS_NO_COPY_ASSIGN(AioOutputStream); LS_NO_COPY_ASSIGN(AioOutputStream);
 End of changes. 2 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)