Author Topic: Multithread "WclProximitySenderOnSendComplete" event  (Read 15327 times)

fabiorov

  • Guest
Multithread "WclProximitySenderOnSendComplete" event
« on: November 18, 2010, 08:42:31 PM »
Hi, I'm evaluating WCL for .net.

Reading the demos I see that there is an event called "WclProximitySenderOnSendComplete" and it is ideal for insert rows in a SQLite database (to know the result codes for each phone), but I want to know if this event can de triggered many times simultaneous when multiples phones are receiving files. If it has this behavior it would be a problem because SQLite soesn't support simultaneous writing threads.

thanks in advance.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Multithread "WclProximitySenderOnSendComplete" event
« Reply #1 on: November 18, 2010, 09:48:27 PM »
Hi

It reports in one thread for each found device. It does not report at the same time.

fabiorov

  • Guest
Re: Multithread "WclProximitySenderOnSendComplete" event
« Reply #2 on: November 19, 2010, 12:21:43 AM »
Ok, Thanks for your answer. Another issue... is it posible that a  thread of "WclProximitySenderOnSendComplete" event to start while another thread is executing... let me explain:

- Event "OnsendComplete"... the thread starts and muy program begin to write in database
- While my program is writing in the database, can another thread of "OnsendComplete" start? or does it wait until the first thread finish?

Thanks

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Multithread "WclProximitySenderOnSendComplete" event
« Reply #3 on: November 19, 2010, 03:30:59 AM »
All the events are always called in main thread.

 

Sitemap 1 2 3 4 5 6 7