Re: Question regarding synchronization in EntryLogger

2017-05-10 Thread Venkateswara Rao Jujjuri
Sure, Charan please have a small writeup so we can discus in next Thursday. On Tue, May 9, 2017 at 10:27 PM, Enrico Olivelli wrote: > > > Il mer 10 mag 2017, 01:59 Sijie Guo ha scritto: > >> On Sat, May 6, 2017 at 9:51 AM, Charan Reddy G >> wrote: >> >> > Hey, >> > >> > In EntryLogger, I'm won

Re: Question regarding synchronization in EntryLogger

2017-05-09 Thread Enrico Olivelli
Il mer 10 mag 2017, 01:59 Sijie Guo ha scritto: > On Sat, May 6, 2017 at 9:51 AM, Charan Reddy G > wrote: > > > Hey, > > > > In EntryLogger, I'm wondering what is the need of making flushCurrentLog > > method synchronized? (if we make logChannel variable volatile or of type > > AtomicReference a

Re: Question regarding synchronization in EntryLogger

2017-05-09 Thread Sijie Guo
On Sat, May 6, 2017 at 9:51 AM, Charan Reddy G wrote: > Hey, > > In EntryLogger, I'm wondering what is the need of making flushCurrentLog > method synchronized? (if we make logChannel variable volatile or of type > AtomicReference and bytesWrittenSinceLastFlush of type AtomicLong). Anyhow > in Bu