gicho / frl

Automatically exported from code.google.com/p/frl
0 stars 0 forks source link

Two questions #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1.
For each group read, 1 thread seems to be created and immediately ended.
Is this by design?

2.
When updating 5-10 tags per second, 5kb increase of memory usage is seen.
Are there any known workarounds?

wkr,

herd

Original issue reported on code.google.com by SMultiMe...@gmail.com on 11 Feb 2010 at 7:21

GoogleCodeExporter commented 8 years ago
1. Yes, it is by desing. For each group created a thread to update values of
items. See GroupManager::updateGroups() (line 193 in frl_opc_group_manager.cpp):
<i>gr.create_thread( boost::bind( &Group::onUpdateTimer, it->second.get() ) 
);</i>

2. You setted updateRate == 100ms for group of tags? Sorry, but I do not see
increase of memory usage. May be a problems in the code that retrieves data 
from the
hardware device. Can you give an example of usage?

Original comment by serg.bab...@gmail.com on 11 Feb 2010 at 9:07