T.R | Title | User | Personal Name | Date | Lines |
---|
999.1 | Yes, it is just marked for delete, nothing gets trashed | TOOK::GUERTIN | I do this for a living -- really | Fri May 10 1991 10:49 | 6 |
| I usually do something like:
stat = mcc_thread_create( ..., &child_thr_id, ...);
mcc_thread_delete( &child_thr_id );
-Matt.
|
999.2 | | COOKIE::KITTELL | Richard - Architected Info Mgmt | Fri May 10 1991 12:09 | 12 |
|
RE: .1
Thanks, Matt.
So, just to be sure I understand the strategy, the only time I wouldn't
want to mark a thread for delete as soon as I create it is when I'll
want to come along after it terminates and get its attributes. Such as
its completion status. And then once I've got everything I want I do the
delete.
Right?
|
999.3 | That should work, but along the same lines... | TOOK::GUERTIN | I do this for a living -- really | Fri May 10 1991 14:34 | 24 |
| I believe that would work. But, going on two year old knowledge, there
is also the case of doing a join with a child thread...
stat = mcc_thread_create( Junior, ... &Juniors_thrid, ...);
mcc_thread_delete( &Juniors_thrid);
:
some work
:
stat = mcc_thread_join_all( Juniors_thrid_vec );
Notice that if thread "Junior" exits *before* the join statement that
all knowledge of Junior will be deleted, and the join will fail with
"Thread existence error". But if we did it this way...
stat = mcc_thread_create( Junior, ... &Juniors_thrid, ...);
:
some work
:
stat = mcc_thread_join_all( Juniors_thrid_vec );
mcc_thread_delete( &Juniors_thrid );
The join should always work, even if Junior exits before the join.
-Matt.
|