blob: 4c25a1f729e47b5e4365d4e7d6b9025141fc4fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Shows how applications can use the ACE_Token_Collection utility. This
example creates three collections and spawns a thread to operate on
each. The threads use the collective acquire, renew, and release
features of ACE_Token_Collection.
Here are the command-line parameters for collection:
./collection:
[-h <remote host>]
[-p <remote port>]
[-n <iterations>]
[-d debug]
To run the collection locally with debugging info, type
% ./collection -d
To run the collection remotely with debugging info, first start a
token server and the type:
% ./collection -d -h <token-server-host> -p <token-server-port>
The -n <iterations> option is to control how often each thread
iterates on the acquire, renew, release cycle.
|