Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Translator.h « server « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3117c29052a5a9fb65811efbb9e4a48bce98e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// -*- c++ -*-
#pragma once

#include "moses/ThreadPool.h"
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/server_abyss.hpp>
#ifndef WITH_THREADS
#pragma message("COMPILING WITHOUT THREADS!")
#endif
namespace MosesServer
{
  class
  // MosesServer::
  Translator : public xmlrpc_c::method
  {
  public:
    Translator(size_t numThreads = 10);

    void execute(xmlrpc_c::paramList const& paramList,
		 xmlrpc_c::value *   const  retvalP);
  private:
    Moses::ThreadPool m_threadPool;
  };

}