Skip to content

Commit

Permalink
added a check for locking
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Apr 24, 2012
1 parent ba984fc commit a05adce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/shogun/machine/Machine.cpp
Expand Up @@ -135,6 +135,14 @@ void CMachine::set_store_model_features(bool store_model)

void CMachine::data_lock(CLabels* labs, CFeatures* features)
{
if (!supports_locking())
{
{
SG_ERROR("%s::data_lock(): Machine does not support data locking!\n",
get_name());
}
}

if (!labs)
{
SG_ERROR("%s::data_lock() is not possible will NULL labels!\n",
Expand Down

0 comments on commit a05adce

Please sign in to comment.