~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/stats_schema.h

  • Committer: Brian Aker
  • Date: 2010-07-28 22:40:44 UTC
  • mto: This revision was merged to the branch mainline in revision 1671.
  • Revision ID: brian@gaz-20100728224044-j7lfssku6pbqg8wr
Remove the need for tolower in retrieval of table functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
    std::vector<ScoreboardSlot *>::iterator scoreboard_vector_end;
115
115
    std::vector<std::vector<ScoreboardSlot* >* >::iterator vector_of_scoreboard_vectors_it;
116
116
    std::vector<std::vector<ScoreboardSlot* >* >::iterator vector_of_scoreboard_vectors_end; 
117
 
    boost::shared_mutex* current_lock;
 
117
    pthread_rwlock_t* current_lock;
118
118
 
119
119
    void setVectorIteratorsAndLock(uint32_t bucket_number);
120
120
  };
179
179
  LoggingStats *outer_logging_stats;
180
180
};
181
181
 
182
 
class ScoreboardStatsTool : public drizzled::plugin::TableFunction
183
 
{
184
 
public:
185
 
 
186
 
  ScoreboardStatsTool(LoggingStats *logging_stats);
187
 
 
188
 
  class Generator : public drizzled::plugin::TableFunction::Generator
189
 
  {
190
 
  public:
191
 
    Generator(drizzled::Field **arg, LoggingStats *logging_stats);
192
 
 
193
 
    bool populate();
194
 
  private:
195
 
    LoggingStats *inner_logging_stats;
196
 
    bool is_last_record;
197
 
  };
198
 
 
199
 
  Generator *generator(drizzled::Field **arg)
200
 
  {
201
 
    return new Generator(arg, outer_logging_stats);
202
 
  }
203
 
private:
204
 
  LoggingStats *outer_logging_stats;
205
 
};
206
 
 
207
182
#endif /* PLUGIN_LOGGING_STATS_STATS_SCHEMA_H */