open_toontown_panda3d/dtool/src
rdb 0bb81a43c9 express: make a thread safe weak pointer implementation (#321)
To access a WeakPointerTo in a thread-safe way, use something like this:

    if (auto ptr = weak_ptr.lock()) {
      ..use ptr as regular PointerTo
    }

The new implementation no longer needs a reference to be stored to all weak pointers on the WeakReferenceList; a mere count of weak pointers is sufficient.  Therefore, callbacks theoretically no longer require a WeakPointerTo to be constructed.

The WeakPointerTo class is not actually atomic; it could be made so, but I don't believe it's worth it at this time.
2018-05-15 13:40:21 +02:00
..
cppparser cppparser: fix infinite recursion stack overflow with enum classes 2018-05-06 22:21:24 +02:00
dconfig general: Add guards to ensure proper BUILDING_ macros defined 2018-03-25 13:17:52 -06:00
dtoolbase express: make a thread safe weak pointer implementation (#321) 2018-05-15 13:40:21 +02:00
dtoolutil general: Add guards to ensure proper BUILDING_ macros defined 2018-03-25 13:17:52 -06:00
interrogate interrogate: allow passing None for args that have NULL as default value 2018-04-05 20:49:13 +02:00
interrogatedb Fix compilation warning on MSVC 2015 2018-03-30 20:15:13 +02:00
parser-inc interrogate: add back NULL definition, fixes some keyword arguments 2018-04-04 21:50:02 +02:00
prc Use vector_uchar instead of string for binary network/file data 2018-04-02 23:17:14 +02:00
prckeys openssl: fix use of deprecated calls 2017-05-25 21:35:02 +02:00
pystub interrogate: more improvements to seq/map wrappers 2017-11-27 17:29:50 +01:00
test_interrogate Fix various compilation issues on Mac. 2017-01-08 17:17:56 -05:00