Permalink
Browse files

make struct forward decs class for scope_buffer reader and writer

  • Loading branch information...
joshpar committed Aug 1, 2012
1 parent d3455c0 commit 535a7e6ee7cc2748341553f24c02900d4437508d
Showing with 7 additions and 4 deletions.
  1. +5 −3 common/scope_buffer.hpp
  2. +2 −1 common/server_shm.hpp
View
@@ -33,8 +33,8 @@ namespace detail_server_shm {
using boost::interprocess::offset_ptr;
using boost::atomic;
-struct scope_buffer_writer;
-struct scope_buffer_reader;
+class scope_buffer_writer;
+class scope_buffer_reader;
class scope_buffer_pool
{
@@ -186,8 +186,10 @@ class scope_buffer
}
};
-struct scope_buffer_writer
+class scope_buffer_writer
{
+public:
+
scope_buffer *buffer;
scope_buffer_writer( scope_buffer *buffer = 0 ):
View
@@ -43,8 +43,9 @@ static inline string make_shmem_name(unsigned int port_number)
return string("SuperColliderServer_") + boost::lexical_cast<string>(port_number);
}
-struct server_shared_memory
+class server_shared_memory
{
+public:
typedef offset_ptr<float> sh_float_ptr;
typedef offset_ptr<scope_buffer> scope_buffer_ptr;

0 comments on commit 535a7e6

Please sign in to comment.