parent
3a04a1ee64
commit
779629ad33
|
@ -85,7 +85,10 @@ bool CONNECTIVITY_DATA::Update( BOARD_ITEM* aItem )
|
||||||
|
|
||||||
void CONNECTIVITY_DATA::Build( BOARD* aBoard, PROGRESS_REPORTER* aReporter )
|
void CONNECTIVITY_DATA::Build( BOARD* aBoard, PROGRESS_REPORTER* aReporter )
|
||||||
{
|
{
|
||||||
std::unique_lock<KISPINLOCK> lock( m_lock );
|
std::unique_lock<KISPINLOCK> lock( m_lock, std::try_to_lock );
|
||||||
|
|
||||||
|
if( !lock )
|
||||||
|
return;
|
||||||
|
|
||||||
m_connAlgo.reset( new CN_CONNECTIVITY_ALGO );
|
m_connAlgo.reset( new CN_CONNECTIVITY_ALGO );
|
||||||
m_connAlgo->Build( aBoard, aReporter );
|
m_connAlgo->Build( aBoard, aReporter );
|
||||||
|
@ -102,7 +105,10 @@ void CONNECTIVITY_DATA::Build( BOARD* aBoard, PROGRESS_REPORTER* aReporter )
|
||||||
|
|
||||||
void CONNECTIVITY_DATA::Build( const std::vector<BOARD_ITEM*>& aItems )
|
void CONNECTIVITY_DATA::Build( const std::vector<BOARD_ITEM*>& aItems )
|
||||||
{
|
{
|
||||||
std::unique_lock<KISPINLOCK> lock( m_lock );
|
std::unique_lock<KISPINLOCK> lock( m_lock, std::try_to_lock );
|
||||||
|
|
||||||
|
if( !lock )
|
||||||
|
return;
|
||||||
|
|
||||||
m_connAlgo.reset( new CN_CONNECTIVITY_ALGO );
|
m_connAlgo.reset( new CN_CONNECTIVITY_ALGO );
|
||||||
m_connAlgo->Build( aItems );
|
m_connAlgo->Build( aItems );
|
||||||
|
|
Loading…
Reference in New Issue