< prev index next >

src/hotspot/share/logging/logFileStreamOutput.cpp

Print this page
*** 74,24 ***
      total_written += written;
    }
    return total_written;
  }
  
- class FileLocker : public StackObj {
- private:
-   FILE *_file;
- 
- public:
-   FileLocker(FILE *file) : _file(file) {
-     os::flockfile(_file);
-   }
- 
-   ~FileLocker() {
-     os::funlockfile(_file);
-   }
- };
- 
  bool LogFileStreamOutput::flush() {
    bool result = true;
    if (fflush(_stream) != 0) {
      if (!_write_error_is_shown) {
        jio_fprintf(defaultStream::error_stream(),
--- 74,10 ---
< prev index next >