Counter demo on Python
Closed this issue · 4 comments
laloweb99 commented
Hello! Is it possible to add/do this c++ example on Python? If is it possible how?
pepone commented
Did you check the python IceStorm demo?
laloweb99 commented
yes but it does not use any mutex or Ice::uncheckedCast on it 😿
pepone commented
The Python hello demo shows the use of ucheckedCast
ice-demos/python/Ice/hello/client.py
Lines 20 to 23 in 7a91b54
As per mutex usage, this is a C++ standard API not Ice specific, python has its own APIs for this
see for example:
https://docs.python.org/3/library/threading.html#lock-objects
https://docs.python.org/3/library/threading.html#condition-objects
Some of the demos in https://github.com/zeroc-ice/ice-demos/tree/3.7/python/Ice make use of these python APIs too
laloweb99 commented
Thank you so much gentleman!