diff options
| author | Steve Huston <shuston@riverace.com> | 1999-01-29 22:54:21 +0000 |
|---|---|---|
| committer | Steve Huston <shuston@riverace.com> | 1999-01-29 22:54:21 +0000 |
| commit | c2f3e0fc25bb80ac90ac930ef4e830a7b8ea5ffb (patch) | |
| tree | faca83b27dbbbadbe26a4ea10a09fafaf789e7eb /docs/tutorials/017 | |
| parent | 4091b96030fdedc9adbafa991035b256be87bc09 (diff) | |
| download | ATCD-c2f3e0fc25bb80ac90ac930ef4e830a7b8ea5ffb.tar.gz | |
Don't init a long with ACE_OS::thr_self - on HP-UX 10.20, it's a struct.
Diffstat (limited to 'docs/tutorials/017')
| -rw-r--r-- | docs/tutorials/017/barrier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/tutorials/017/barrier.cpp b/docs/tutorials/017/barrier.cpp index 287c3c8be8a..4386ad83ad8 100644 --- a/docs/tutorials/017/barrier.cpp +++ b/docs/tutorials/017/barrier.cpp @@ -47,7 +47,8 @@ int Test::svc(void) // Initialize the random number generator. We'll use this to // create sleep() times in each thread. This will help us see // if the barrier synch is working. - ACE_RANDR_TYPE seed = ACE_OS::thr_self(); + ACE_Time_Value now(ACE_OS::gettimeofday()); + ACE_RANDR_TYPE seed = now.usec(); ACE_OS::srand(seed); int delay; |
