mCore™ .NET SMS Library
1.2
Thread Safety
- All properties of mCore classes (of a particular instance of mCore.SMS)
can be written in to or read from, simultaneously from multiple threads
without raising any exception. However, the results of doing so are not
guaranteed in terms of producing the desired results.
- All methods of mCore classes (of a particular instance of mCore.SMS) can
be called simultaneously from multiple threads without raising any
exception. However, the results of doing so are not guaranteed in terms of
producing desired results.
- All properties and methods that require serial communication with the
GSM Modem are queued internally by mCore.SMS instance and will never cause
serial communication errors. In other words, Sending SMS from multiple
threads using the same instance of mCore.SMS (with same value for serial
communication properties viz. BaudRate, Port etc) will work perfectly
alright as the commands from various threads will be queued inside mCore.SMS
instance. To get desired results, changing of properties like
LongMessage,
Encoding,
Validity,
SMSC etc should be
avoided from multiple threads.
- Using multiple instances of mCore.SMS with each instance connected to a
different serial port (i.e. having different Port property) is completely
thread safe.
Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved