summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk/plugins/sunmajor/pluginlib/util.cxx')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index f703fb4c200b..3afa7fcbbd07 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -193,6 +193,7 @@ rtl::Bootstrap * getBootstrap()
InitBootstrap(), ::osl::GetGlobalMutex(), InitBootstrapData());
}
+namespace {
class FileHandleGuard
{
@@ -211,6 +212,8 @@ private:
oslFileHandle & m_rHandle;
};
+}
+
inline FileHandleGuard::~FileHandleGuard()
{
if (m_rHandle != nullptr)
@@ -222,6 +225,7 @@ inline FileHandleGuard::~FileHandleGuard()
}
}
+namespace {
class FileHandleReader
{
@@ -248,6 +252,8 @@ private:
bool m_bLf;
};
+}
+
FileHandleReader::Result
FileHandleReader::readLine(OString * pLine)
{
@@ -304,6 +310,8 @@ FileHandleReader::readLine(OString * pLine)
}
}
+namespace {
+
class AsynchReader: public salhelper::Thread
{
size_t m_nDataSize;
@@ -326,6 +334,8 @@ public:
OString getData();
};
+}
+
AsynchReader::AsynchReader(oslFileHandle & rHandle):
Thread("jvmfwkAsyncReader"), m_nDataSize(0),
m_aGuard(rHandle)