Home | History | Annotate | Download | only in libvncserver

Lines Matching full:refcount

1498 	client 2 i.e. client 2's cl_2->refCount is 1. At this point we need
1499 to loop again through the clients, with cl_2->refCount == 1, i.e. do
1502 LOCKs clientListMutex and WAITs for cl_2->refCount to become 0. This
1508 cl_2->refCount becomes 0. The main thread would decrement
1509 cl_2->refCount when it would continue with loop L1. But it's waiting
1512 cl_2->refCount. DEADLOCK. Now, situation with this patch: Same as above, but when client 2 disconnects it's clientInput thread
1515 cl_2->refCount to become 0 is _after_ that. Waiting, with
1518 continue with loop L1, finally decrementing cl_2->refCount, allowing
1521 cl2->refCount becomes 0, i.e. loop L1 has released cl2.