Re: [bme-develop] emoticon code in cvs
Status: Planning
Brought to you by:
sirmik
|
From: Sir M. <obe...@ho...> - 2004-04-06 17:24:24
|
Hi, >Yes, I wouldn't call methods from different threads. However instead of >passing a pointer to the List itself, pass a pointer to the actual data >(can be obtained from BList::Items()) along with the number of items. >Then each thread will have their own independent pointer to the data, >and providing the actual list data is not changed, they can both read >the actual items in the list at the same time. > Ah right, I'll pass a pointer to the Items them...we probably only need this list in the emoticon choosing view(the emoticon matrix) in the chat window right? >I would have the IconHandler deal with everything. So in the main bme >code we just need >iconHandler = new IconHandler(); >and then the icon handler constructor takes care of creating the other >classes it needs, creating a list of emoticons, populating it, managing >the list, etc. > Mmm, problem I have with this approach is that the Handler will be loading the icon's...a task it should do....we also can't separate the loading of the icons and the starting of the handler, which maybe necessary! regards, Tim _________________________________________________________________ MSN Search, for accurate results! http://search.msn.nl |