16 Mar
2011
16 Mar
'11
1 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, March 16, 2011, Zap wrote:
I just tested a simple case, which just lock the read lock and print out the result of tablePush.size(), like this:
bool getFD(list<int> *des, char *type, char *code){ bool flag=false; boost::shared_lockboost::shared_mutex lock(rwMutex); cout<
(type, code)].size()< but it still happens Segmentation Fault...
could anyone know what's the problem is?
operator[] on maps can modify the map. Maybe you want to use find() instead? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk2AtF8ACgkQ5vihyNWuA4U8dwCgqo2WMSY9JLSbNL8x1je8Qd2Y XtEAoLkH9S0m9LE8nMH4idirsz2UsNi3 =TB03 -----END PGP SIGNATURE-----