diff options
Diffstat (limited to 'docs/tutorials/021/page03.html')
-rw-r--r-- | docs/tutorials/021/page03.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/tutorials/021/page03.html b/docs/tutorials/021/page03.html index e2d6e0bf117..510cc08960a 100644 --- a/docs/tutorials/021/page03.html +++ b/docs/tutorials/021/page03.html @@ -1,3 +1,4 @@ +<!-- $Id$ --> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> @@ -12,7 +13,7 @@ <P> <HR WIDTH="100%"> - The client side is a little simpler than the server. Mainly + The client side is a little simpler than the server. Mainly because we don't try to delete the pool: <ul> <li>Create an Allocator to access the pool @@ -26,7 +27,7 @@ <font color=blue>#include</font> "<font color=green>mpool.h</font>" <font color=blue>#if defined</font>(<font color=purple>ACE_LACKS_SYSV_SHMEM</font>) -int +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, @@ -69,7 +70,7 @@ main (int, char *[]) */</font> char *shm = (char *) region; - ACE_DEBUG ((LM_INFO, + ACE_DEBUG ((LM_INFO, "<font color=green>Shared memory is at 0x%x\n</font>", shm)); @@ -103,7 +104,7 @@ main (int, char *[]) <font color=red>/* Now that we know it is safe to access the data, we'll run - through and make sure that it contains what we think the server + through and make sure that it contains what we think the server supplied. */</font> for (int i = 0; i < <font color=#008888>Constants::SHMSZ</font>; i++) @@ -112,7 +113,7 @@ main (int, char *[]) <font color=red>/* Look back at the server. After filling the region, it will attempt to acquire the lock on 'synch'. It will wait there - until we release() the semaphore. That will allow it to remove + until we release() the semaphore. That will allow it to remove the pool and cleanup. We can simply exit once we perform the release. (Ok, a free() of the region would probably be polite...) */</font> @@ -120,7 +121,7 @@ main (int, char *[]) ACE_ERROR_RETURN ((LM_ERROR, "<font color=green>(%P) client synch.release</font>"), 1); - + return 0; } |