MCPcopy Create free account
hub / github.com/apache/mesos / join

Method join

src/exec/exec.cpp:931–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929
930
931Status MesosExecutorDriver::join()
932{
933 // Exit early if the driver is not running.
934 synchronized (mutex) {
935 if (status != DRIVER_RUNNING) {
936 return status;
937 }
938 }
939
940 // If the driver was running, the latch will be triggered regardless
941 // of the current `status`. Wait for this to happen to signify
942 // termination.
943 CHECK_NOTNULL(latch)->await();
944
945 // Now return the current `status` of the driver.
946 synchronized (mutex) {
947 CHECK(status == DRIVER_ABORTED || status == DRIVER_STOPPED);
948
949 return status;
950 }
951}
952
953
954Status MesosExecutorDriver::run()

Callers

nothing calls this directly

Calls 1

awaitMethod · 0.45

Tested by

no test coverage detected