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