Commit 4f9842d3 authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Print size of mutex and condition variable

parent 754cc7d9
......@@ -12,6 +12,7 @@
#include <tao-basics.h>
#include <tao-macros.h>
#include <tao-utils.h>
#include <tao-locks.h>
#include <tao-shared-objects-private.h>
#include <tao-remote-objects-private.h>
#include <tao-rwlocked-objects-private.h>
......@@ -41,6 +42,10 @@ int main(
const char* str_hello = "hello";
// Print size of basic objects.
printf("sizeof(tao_mutex) = %ld bytes\n",
(long)sizeof(tao_mutex));
printf("sizeof(tao_cond) = %ld bytes\n",
(long)sizeof(tao_cond));
printf("sizeof(tao_shared_object) = %ld bytes\n",
(long)sizeof(tao_shared_object));
printf("sizeof(tao_remote_object) = %ld bytes\n",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment