Lines Matching refs:atoms
46 /* how frequently to cull old atoms */
2327 struct peer_atom ** atoms = NULL;
2339 *** build a list of atoms
2347 atoms = tr_new( struct peer_atom *, atomCount );
2349 atoms[i] = peers[i]->atom;
2356 atoms = tr_new( struct peer_atom *, n );
2359 atoms[atomCount++] = atomBase[i];
2362 qsort( atoms, atomCount, sizeof( struct peer_atom * ), compareAtomsByUsefulness );
2373 const struct peer_atom * atom = atoms[i];
2391 tr_free( atoms );
3708 struct peer_atom ** atoms = (struct peer_atom**) tr_ptrArrayPeek( &t->pool, &atomCount );
3710 if( atomCount > maxAtomCount ) /* we've got too many atoms... time to prune */
3720 struct peer_atom * atom = atoms[i];
3735 /* free the culled atoms */
3961 /** @return an array of all the atoms we might want to connect to */
3975 /* count how many peers and atoms we've got */
3998 struct peer_atom ** atoms;
4011 atoms = (struct peer_atom**) tr_ptrArrayPeek( &tor->torrentPeers->pool, &nAtoms );
4014 struct peer_atom * atom = atoms[i];