Fix T63748: Long startups after network drives are disconnected.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 15 May 2019 14:20:14 +0000 (16:20 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 15 May 2019 14:26:47 +0000 (16:26 +0200)
commit6dceafbde392ce0b2c2086d0906acf638d9902b2
tree847238fb41b443f7e8ae4f1c77ea4e2874daea61
parente39737f166bd8498c3759675bb5457c2bf58f07f
Fix T63748: Long startups after network drives are disconnected.

We need to make those paths validation async, since some infamous OS is
unable to provide a quick way to check whether a path is valid or not...

Not much to say here, this is basic wmJob stuff really... We don’t even
need complex threaded coordination locks or atomics, given how simple
the changes are here.

Fake-tested with some `sleep()` calls to add atificial delay, seems to
work as expected.
source/blender/editors/space_file/file_ops.c
source/blender/editors/space_file/fsmenu.c
source/blender/editors/space_file/fsmenu.h
source/blender/editors/space_file/space_file.c
source/blender/windowmanager/WM_api.h